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.
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
Comment 12Red Hat Bugzilla
2023-09-15 01:04:51 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days
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.