Test case:
$ cat test.cc
class ggF3 {
public:
ggF3() {}
};
class ggHM3 {
public:
ggHM3();
ggHM3(const ggHM3& m);
double e[4][4];
};
inline ggHM3 makeCRHM(void)
{
ggHM3 r;
return r;
}
const ggHM3 crm(makeCRHM());
ggF3 ggFI(const ggF3 keyframe[])
{
return keyframe[1];
}
$ /opt/gcc-nightly/mline-20050717/bin/g++ -c -O3 test.cc
test.cc: In function ‘void __static_initialization_and_destruction_0(int,
int)’:
test.cc:23: internal compiler error: in create_tmp_var, at gimplify.c:368
$ /opt/gcc-nightly/mline-20050717/bin/g++ -v
Target: powerpc64-linux
Configured with: /home/gccbuild/gcc_mline_anoncvs/gcc/configure
--prefix=/opt/gcc-nightly/mline-20050719 --build=powerpc64-linux
--host=powerpc64-linux --target=powerpc64-linux --with-cpu=default32
--with-as=/opt/gcc-nightly/mline-20050719/bin/as
--with-ld=/opt/gcc-nightly/mline-20050719/bin/ld --enable-threads=posix
--enable-shared --enable-__cxa_atexit
--enable-languages=c,c++,f95,java,objc,obj-c++ --enable-checking
--with-mpfr=/opt/gcc-nightly/mline-20050719
Thread model: posix
gcc version 4.1.0 20050719 (experimental)
--
Summary: internal compiler error: in create_tmp_var, at
gimplify.c:368 "c++ testcase"
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: uttamp at us dot ibm dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc64-linux
GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22560