{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5060","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5060/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5060/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5060/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/5060","id":146268732,"number":5060,"title":"polygonal-ds vs. hxcpp","user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/regression","name":"regression","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/5","html_url":"https://github.com/HaxeFoundation/haxe/milestones/3.3.0-rc1","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/5/labels","id":586975,"number":5,"title":"3.3.0-rc1","description":"","creator":{"login":"ncannasse","id":1022912,"avatar_url":"https://avatars.githubusercontent.com/u/1022912?v=3","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":286,"state":"open","created_at":"2014-03-04T14:22:27Z","updated_at":"2016-04-25T11:24:34Z","due_on":"2016-04-30T22:00:00Z","closed_at":null},"comments":16,"created_at":"2016-04-06T10:32:53Z","updated_at":"2016-04-26T11:46:05Z","closed_at":null,"body":"More problems I'm afraid. Trying to run the polygonal-ds test suite crashes with this stack trace:\r\n\r\n```\r\n \tUnitTest-debug.exe!cpp::VirtualArray_obj::__get(int inIndex) Line 468\tC++\r\n \tUnitTest-debug.exe!de::polygonal::ds::Array3Iterator_obj::next() Line 107\tC++\r\n \tUnitTest-debug.exe!de::polygonal::ds::__Array3Iterator_objnext(hx::Object * inObj) Line 111\tC++\r\n \tUnitTest-debug.exe!hx::CMemberFunction0::__run() Line 50\tC++\r\n \tUnitTest-debug.exe!Dynamic::operator()() Line 262\tC++\r\n \tUnitTest-debug.exe!TestArray3_obj::testIterator() Line 646\tC++\r\n \tUnitTest-debug.exe!__TestArray3_objtestIterator(hx::Object * inObj) Line 667\tC++\r\n \tUnitTest-debug.exe!hx::CMemberFunction0::__Run(const Array<Dynamic> & inArgs) Line 44\tC++\r\n \tUnitTest-debug.exe!Reflect_obj::callMethod(Dynamic o, Dynamic func, cpp::VirtualArray args) Line 68\tC++\r\n \tUnitTest-debug.exe!haxe::unit::TestRunner_obj::runCase(hx::ObjectPtr<haxe::unit::TestCase_obj> t) Line 133\tC++\r\n \tUnitTest-debug.exe!haxe::unit::TestRunner_obj::run() Line 92\tC++\r\n \tUnitTest-debug.exe!UnitTest_obj::__construct() Line 149\tC++\r\n \tUnitTest-debug.exe!UnitTest_obj::__new() Line 166\tC++\r\n \tUnitTest-debug.exe!UnitTest_obj::main() Line 178\tC++\r\n \tUnitTest-debug.exe!__hxcpp_main() Line 25\tC++\r\n \tUnitTest-debug.exe!main(int argc, char * * argv) Line 87\tC++\r\n```\r\n\r\nA run with different compilation parameters doesn't compile:\r\n\r\n```\r\ncl.exe -Iinclude -nologo -O2 /WX- /fp:precise -DHX_WINDOWS -D_USING_V120_SDK71_ -GR -FS -Oy- -c -EHs -GS- -arch:SSE -IC:/GitHub/hxcpp/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=330 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -wd4996 -MT ./src/de/polygonal/ds/NodeValIterator.cpp -FoC:/GitHub/ds/tools/test/bin/cpp/test-generic-noinline/obj/msvc18xp/4ccf869c_NodeValIterator.obj\r\nGraphNodeIterator__TestGraph_E.cpp\r\nC:/GitHub/hxcpp/include\\hx/Object.h(254) : error C2680: '_TestGraph::E_obj *' : invalid target type for dynamic_cast\r\n        '_TestGraph::E_obj' : class must be defined before using in a dynamic_cast\r\n        C:/GitHub/hxcpp/include\\hx/Object.h(251) : while compiling class template member function 'void hx::ObjectPtr<_TestGraph::E_obj>::CastPtr(hx::Object *,bool)'\r\n        C:/GitHub/hxcpp/include\\hx/Object.h(284) : see reference to function template instantiation 'void hx::ObjectPtr<_TestGraph::E_obj>::CastPtr(hx::Object *,bool)' being compiled\r\n        include\\de/polygonal/ds/GraphNode__TestGraph_E.h(54) : see reference to class template instantiation 'hx::ObjectPtr<_TestGraph::E_obj>' being compiled\r\n\r\nGraphNode_Int.cpp\r\nGraph__TestGraph_E.cpp\r\nGraph_String.cpp\r\nGraphNodeIterator_String.cpp\r\nGraph_Int.cpp\r\nNodeValIterator.cpp\r\nGraphNodeIterator_Int.cpp\r\nError: Build failed\r\n\r\nERROR\r\n```"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/214714483","html_url":"https://github.com/HaxeFoundation/haxe/issues/5060#issuecomment-214714483","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5060","id":214714483,"user":{"login":"hughsando","id":1665494,"avatar_url":"https://avatars.githubusercontent.com/u/1665494?v=3","gravatar_id":"","url":"https://api.github.com/users/hughsando","html_url":"https://github.com/hughsando","followers_url":"https://api.github.com/users/hughsando/followers","following_url":"https://api.github.com/users/hughsando/following{/other_user}","gists_url":"https://api.github.com/users/hughsando/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsando/subscriptions","organizations_url":"https://api.github.com/users/hughsando/orgs","repos_url":"https://api.github.com/users/hughsando/repos","events_url":"https://api.github.com/users/hughsando/events{/privacy}","received_events_url":"https://api.github.com/users/hughsando/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T11:45:30Z","updated_at":"2016-04-26T11:45:30Z","body":"@Simn this one is beyond me I think.\r\nHaxe is using the same generic code for \"Int\" and \"Null<Int>\".  Same issue happens on flash, so I guess it is a core issue."}}