[3.3.8] ctorleak test: false behavior with exception disabled

When compiling the 'ctorleak' test with -DEIGEN_TEST_NO_EXCEPTIONS=ON, the constructor of MatrixX m(rows, cols); turns out to be in the same scope of the VERIFY_IS_EQUAL(Index(0), Foo::object_count); because the braces {} of try..catch are not there anymore. And that check will be false since the destructor of m has not been called yet.

https://gitlab.com/libeigen/eigen/-/blob/3.3.8/test/ctorleak.cpp#L45

After checking with master, the bug has been fixed long time ago, but I don't know why it has not been pushed in 3.3 as well ?

https://gitlab.com/libeigen/eigen/-/blob/master/test/ctorleak.cpp#L45

Assignee Loading
Time tracking Loading