Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: X10 SVN HEAD
-
Fix Version/s: X10 2.2
-
Component/s: Native X10: Compiler Codegen
-
Labels:None
-
Environment:trunk r20275, NOT 2.1.1
-
Number of attachments :
Description
The following code
public class Test { public static def main(Array[String](1)) { var count:Int = 10; var end:Int = count - 1; for (var i:Int = 0, mid:Int = count / 2; i < mid; i++, --end) { } } }
based on similar code from X10Libs, produces the following post-compilation error:
~/projects/jira$ x10c++ Test.x10
x10c++: Test.cc: In static member function 'static void Test::main(x10aux::ref<x10::array::Array<x10aux::ref<x10::lang::String> > >)':
Test.cc:27: error: expected initializer before 'mid'
Test.cc:28: error: 'mid' was not declared in this scope
x10c++: Non-zero return code: 1
To the best of my knowledge this code compiled on Friday afternoon (2/18/2011), so the regression is probably quite recent.
Activity
Minor Gordon
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Janice Shepherd [ janice ] |
Janice Shepherd
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | X10 2.2 [ 16002 ] | |
| Resolution | Fixed [ 1 ] |
David Grove
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |