Simn / haxe

6 stars 0 forks source link

C++ broken #35

Closed Simn closed 9 years ago

Simn commented 9 years ago

After merging development I'm seeing this:

Error: ./src/unit/MyList.cpp: In member function ‘virtual unit::MyList unit::MyList_obj::flatMap(Dynamic)’:
./src/unit/MyList.cpp:115:30: error: ‘T’ is not a member of ‘unit::MyList {aka hx::ObjectPtr<unit::MyList_obj>}’
./src/unit/MyList.cpp:115:30: error: ‘T’ is not a member of ‘unit::MyList {aka hx::ObjectPtr<unit::MyList_obj>}’
./src/unit/MyList.cpp:115:46: error: template argument 1 is invalid
./src/unit/MyList.cpp:155:32: error: ‘virtual unit::MyList unit::MyList_obj::flatMap(Dynamic)’ cannot appear in a constant-expression
./src/unit/MyList.cpp:155:43: error: template argument 1 is invalid

This suggests a broken AST, but the weird part is that the Java target works just fine.

Simn commented 9 years ago

Actually this is a core issue.