-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b126
-
generic
-
generic
In opto/parse.hpp, the Parse class has a nested Block class. The only constructor for this class is not callable; it's body consists entirely of a call to ShouldNotReachHere.
Apparently we're "constructing" Block objects by calling the init_node/init_graph member functions on pointers to *uninitialized* memory cast to Block*, which is undefined behavior.
Maybe someone didn't understand placement new?
Apparently we're "constructing" Block objects by calling the init_node/init_graph member functions on pointers to *uninitialized* memory cast to Block*, which is undefined behavior.
Maybe someone didn't understand placement new?