This little program gives me a strange error. I tried various optimization and debug flags with the same result. Can you reproduce that?
class Main { public static def main(args:Array[String]) { val x = int.parse(args(0)); } } $ x10c++ -version x10c++ version 2.2.0 Polyglot compiler toolkit version 3.2.0 (2010-06-03 19:23:58) $ x10c++ Main.x10 /afs/info.uni-karlsruhe.de/user/zwinkau/dev/invadeX10/integration_invasive/src/Main.x10:6: Cannot get LocalDef before type-checking local variable. 1 error. Exception in thread "main" polyglot.util.InternalCompilerError: /afs/info.uni-karlsruhe.de/user/zwinkau/dev/invadeX10/integration_invasive/src/Main.x10:6,27-33: Cannot get LocalDef before type-checking local variable. at polyglot.types.ErrorRef_c.get(ErrorRef_c.java:20) at polyglot.types.Use_c.def(Use_c.java:16) at x10.types.X10LocalInstance_c.x10Def(X10LocalInstance_c.java:47) at x10.types.X10LocalInstance_c.x10Def(X10LocalInstance_c.java:39) at x10.visit.TypeTransformer.transform(TypeTransformer.java:338) at x10.visit.NodeTransformer.transformExpr(NodeTransformer.java:89) at x10.visit.TypeTransformer.transformExpr(TypeTransformer.java:332) at x10.visit.NodeTransformer.transform(NodeTransformer.java:67) at x10.visit.TypeTransformer.transform(TypeTransformer.java:285) at x10.visit.X10InnerClassRemover.leaveCall(X10InnerClassRemover.java:132) at polyglot.visit.ErrorHandlingVisitor.leaveCall(ErrorHandlingVisitor.java:144) at polyglot.visit.ErrorHandlingVisitor.leave(ErrorHandlingVisitor.java:282) at polyglot.visit.ContextVisitor.leave(ContextVisitor.java:140) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:258) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.Field_c.visitChildren(Field_c.java:118) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at x10.ast.X10Binary_c.visitChildren(X10Binary_c.java:1059) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.Unary_c.visitChildren(Unary_c.java:73) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.If_c.visitChildren(If_c.java:88) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.Node_c.visitList(Node_c.java:240) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at x10.ast.Closure_c.visitChildren(Closure_c.java:231) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at x10.ast.ClosureCall_c.visitChildren(ClosureCall_c.java:176) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.Node_c.visitList(Node_c.java:240) at x10.ast.X10Call_c.visitChildren(X10Call_c.java:307) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.LocalDecl_c.visitChildren(LocalDecl_c.java:140) at x10.ast.X10LocalDecl_c.visitChildren(X10LocalDecl_c.java:308) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.Node_c.visitList(Node_c.java:240) at polyglot.ast.AbstractBlock_c.visitChildren(AbstractBlock_c.java:72) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.MethodDecl_c.visitChildren(MethodDecl_c.java:160) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.Node_c.visitList(Node_c.java:240) at x10.ast.X10ClassBody_c.visitChildren(X10ClassBody_c.java:340) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at x10.ast.X10ClassDecl_c.visitChildren(X10ClassDecl_c.java:1554) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:217) at polyglot.ast.Node_c.visitChild(Node_c.java:180) at polyglot.ast.Node_c.visitList(Node_c.java:240) at polyglot.ast.SourceFile_c.visitChildren(SourceFile_c.java:118) at polyglot.ast.JL_c.visitChildren(JL_c.java:45) at x10.extension.X10Del_c.visitChildren(X10Del_c.java:143) at polyglot.visit.NodeVisitor.visitEdgeNoOverride(NodeVisitor.java:251) at polyglot.visit.InnerClassRemover.override(InnerClassRemover.java:75) at polyglot.visit.NodeVisitor.visitEdge(NodeVisitor.java:214) at polyglot.ast.Node_c.visit(Node_c.java:184) at polyglot.frontend.VisitorGoal.runTask(VisitorGoal.java:48) at x10.ExtensionInfo$X10Scheduler$ValidatingVisitorGoal.runTask(ExtensionInfo.java:995) at polyglot.frontend.Scheduler.runPass(Scheduler.java:349) at x10.ExtensionInfo$X10Scheduler.runPass(ExtensionInfo.java:1138) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:133) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:75) at polyglot.types.LazyRef_c.get(LazyRef_c.java:56) at polyglot.frontend.Scheduler.attempt(Scheduler.java:257) at polyglot.frontend.Scheduler.runToCompletion(Scheduler.java:193) at polyglot.frontend.Scheduler.runToCompletion(Scheduler.java:179) at polyglot.frontend.Compiler.compile(Compiler.java:269) at polyglot.frontend.Compiler.compileFiles(Compiler.java:229) at polyglot.main.Main.start(Main.java:135) at polyglot.main.Main.start(Main.java:76) at polyglot.main.Main.main(Main.java:185) exit status: 1 -- Andreas Zwinkau Karlsruhe Institute of Technology (KIT) Institut für Programmstrukturen und Datenorganisation (IPD) Lehrstuhl Prof. Snelting Adenauerring 20a 76131 Karlsruhe Phone: +49 721 608 48351 Fax: +49 721 608 48457 Email: zwin...@kit.edu Web: http://pp.info.uni-karlsruhe.de/person.php?id=107 KIT – University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users