intel / yarpgen

Yet Another Random Program Generator
Other
484 stars 53 forks source link

Fix MSVC (correct) runtime assertion on uninitialized var #195

Closed OfekShilon closed 9 months ago

OfekShilon commented 10 months ago

The exact assertion text is "Vector iterators incompatible", but MSVC is right to assert here, in the (common) case where taken_switch_id isn't initialized.

LowLevelMahn commented 9 months ago

FYI: for gcc/clang the libstdc++ will also most likly assert when the program is compiled with -D_GLIBCXX_DEBUG