Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: X10 2.3.2
-
Component/s: Managed X10: Compiler Codegen
-
Labels:None
-
Number of attachments :
Description
The following test
public class FinishTest { public static def main(Array[String]) { var aaa : Int = 1; finish async { var bbb : Int = 2; finish async { aaa = bbb; } } } }
fails compilation with Managed X10 compiler with the message
x10c: ----------
1. ERROR in /share/bcp2/ey06149/X10/work/FinishTest.java (at line 281)
$aaa43[0]=aaa;
^^^
aaa cannot be resolved
----------
2. ERROR in /share/bcp2/ey06149/X10/work/FinishTest.java (at line 308)
aaa = ((int)$aaa43[0]);
^^^
aaa cannot be resolved
----------
2 problems (2 errors)
x10c: Non-zero return code: 255
2 errors.
Reproduced.
Added a test case (AsyncInit2.x10) in r23695.