https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92267
Bug ID: 92267
Summary: crash with a cppunit test case (built by GCC 9) and
cpptest (built with GCC 8)
Product: gcc
Version: 9.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at debian dot org
Target Milestone: ---
Created attachment 47126
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47126&action=edit
abigail for cppunit
having a cppunit built with GCC 8, and building the testcase with GCC 9
crashes. Rebuild cppunit with GCC 9 as well, then the test runs as expected.
$ cat foo.cc
#include <stack>
#include <string>
#include <cppunit/TestAssert.h>
class X {
private:
std::stack<std::string> s1;
std::stack<unsigned int> s2;
};
int
main(int argc, char *argv[]) {
X *x = new X();
// delete x;
std::string r;
CPPUNIT_ASSERT(r.empty());
return 0;
}