To reproduce this bug, compile following class with haxe -main Test -cpp build -debug -D analyzer
class Test {
static public function main () {
var fast = new haxe.xml.Fast(Xml.parse("<class />"));
fast.elements;
}
}
Now run compiled file and see error:
Called from Test::main Test.hx line 4
Called from haxe.xml.Fast::get_elements /usr/lib/haxe/std/haxe/xml/Fast.hx line 165
Called from Xml::elements /usr/lib/haxe/std/Xml.hx line 232
Error : Null Object Reference
RTTI also becomes broken since it relies on haxe.xml.Fast.
Removing -D analyzer from compilation flags solves the problem (but removes compiler optimisations :) )
This bug affects C++ only. Other targets work fine.
Compiler: Haxe 3.2.0 release.
To reproduce this bug, compile following class with
haxe -main Test -cpp build -debug -D analyzer
Now run compiled file and see error:
RTTI also becomes broken since it relies on
haxe.xml.Fast
.Removing
-D analyzer
from compilation flags solves the problem (but removes compiler optimisations :) )This bug affects C++ only. Other targets work fine. Compiler: Haxe 3.2.0 release.