Description of problem: When using arrays of C-style complex numbers consisting of two or more elements using cppunit, g++ crashes with a compiler error. Version-Release number of selected component (if applicable): 10.2.1-2.1 How reproducible: 100% Steps to Reproduce: 1. Install devtoolset-10 package. 2. Unzip test package to directory. 3. Run "./build.sh 10". Actual results: Compiler crashes with the following error: during GIMPLE pass: cddce example-fail.cpp: In member function ‘CppUnit::TestFixture* CppUnit::ConcretTestFixtureFactory<TestFixtureType>::makeFixture() [with TestFixtureType = example_suite]’: example-fail.cpp:12:47: internal compiler error: in propagate_necessity, at tree-ssa-dce.c:1046 12 | CPPUNIT_TEST_SUITE_REGISTRATION(example_suite); | Expected results: Compilation succeeds. Additional info: - This has been present since DTS 6, but is absent in mainline gcc and gcc in DTS 4.
Created attachment 1770460 [details] Test reproduction package
Created attachment 1770461 [details] Preprocessed compiler output post-crash from test package
This is https://gcc.gnu.org/PR8353 which was already fixed upstream. It is also included in devtoolset-10-gcc-10.2.1-11.1.el7.
(In reply to Marek Polacek from comment #4) > This is https://gcc.gnu.org/PR8353 which was already fixed upstream. It is > also included in devtoolset-10-gcc-10.2.1-11.1.el7. I meant https://gcc.gnu.org/PR98353
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (devtoolset-10-gcc bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2219
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days