Bug 26210 - Specific code causes g++ 4.1.0 dominance ICE when compiled with -O3
Summary: Specific code causes g++ 4.1.0 dominance ICE when compiled with -O3
Status: RESOLVED DUPLICATE of bug 26209
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.1.0
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-10 09:54 UTC by Walter Zimmer
Modified: 2006-02-10 10:01 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Zimmer 2006-02-10 09:54:37 UTC
We have a problem that gcc 4.1-20060203 emits an internal compiler error
while compiling a certain code construct.

The following reduced test case code reproduces the bug:
------------------------------------------------------------------
#include <boost/multi_array.hpp>

using namespace std;

class Blubb {

public:
        typedef boost::multi_array<pair<float,uint>, 3> ourArray;

        void blah();
};

void Blubb::blah () {
        new ourArray(boost::extents[1][1][1]);
}
------------------------------------------------------------------

While compiling with gcc-4.1, it says:

testcase> g++ -O3 test.cpp
test.cpp: In member function 'void Blubb::blah()':
test.cpp:17: internal compiler error: in dominated_by_p, at dominance.c:827
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
testcase> 

It compiles fine with -O2. The stock RHEL4 compilers (4.0.1 20050727
and 3.4.4 20050721) also do well with -O3.

I didn't provide the boost include file (boost version 1.33.1, stock
RHEL4 1.32.0 doesn't make any difference), and test.ii as it is 1.3 MB
large. Just yell and I'll do!

gcc -v says:
Configured with: ../gcc-4.1-20060203/configure --prefix=/local/inst
--enable-languages=c,c++,fortran --disable-multilib
Thread model: posix
gcc version 4.1.0 20060203 (prerelease)
Comment 1 Walter Zimmer 2006-02-10 10:01:07 UTC

*** This bug has been marked as a duplicate of 26209 ***