The compiler giving internal compiler errors