Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: X10 2.2
-
Component/s: X10 Compiler: Front-end Typechecking
-
Labels:None
-
Environment:r20784
-
Number of attachments :
Description
Compiling the following code:
public final class XTENLANG_2557 { public def fill(r:Int) { for (p in r) { } } }
crashes with the following trace:
/Users/igor/x10/test/XTENLANG_2557.x10:4: This resolver should never be called! Use ref.update(...) before calling ref.get()
1 error.
Exception in thread "main" polyglot.util.InternalCompilerError: /Users/igor/x10/test/XTENLANG_2557.x10:4,18-18: This resolver should never be called! Use ref.update(...) before calling ref.get()
at polyglot.types.LazyRef_c$2.run(LazyRef_c.java:24)
at polyglot.types.LazyRef_c.get(LazyRef_c.java:56)
at polyglot.types.Types.get(Types.java:78)
at x10.ast.X10CanonicalTypeNode_c.typeCheck(X10CanonicalTypeNode_c.java:91)
at polyglot.ast.JL_c.typeCheck(JL_c.java:180)
at x10.visit.X10TypeChecker.leaveCall(X10TypeChecker.java:96)
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.Formal_c.visitChildren(Formal_c.java:113)
at x10.ast.X10Formal_c.visitChildren(X10Formal_c.java:89)
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.X10Loop_c.typeCheckOverride(X10Loop_c.java:145)
...
Issue Links
- is depended upon by
-
XTENLANG-2584
X10 2.2 frontend issues (umbrella)
-