Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: X10 2.1.2
-
Fix Version/s: X10 2.2
-
Component/s: Native X10: Compiler Codegen
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Source: TestLoop.x10
1 public class TestLoop {
2 var pos:Int;
3 public def this() {
4 pos = 0;
5 }
6 public def doIt() {
7 for (pos++; pos<10; pos++) {
8 Console.OUT.println("pos=" + pos);
9 }
10 }
11
12 public static def main(Array[String](1)) {
13 val obj = new TestLoop();
14 obj.doIt();
15 }
16 }
Compilation Error:
$ x10c++ -O -NO_CHECKS -d native -o tloop TestLoop.x10
x10c++: TestLoop.cc: In member function 'virtual void TestLoop::doIt()':
TestLoop.cc:43: error: 'id4749' was not declared in this scope
TestLoop.cc:46: error: 'x51' was not declared in this scope
x10c++: Non-zero return code: 1
2 errors.
Affects SVN HEAD but not X10 2.1.1.