ICE with C++ code returning structure when using -O3. Can be worked around by
not using -O3 or returning structure as an argument.
Running on Fedora Core 2, with all updates as of 08/07/2004. System has fresh
install of gcc 3.4.1 (built with gcc 3.4.0) no special redhat compilers
uname -a gives:
Linux barn 2.6.6-1.435.2.3 #1 Thu Jul 1 08:25:29 EDT 2004 i686 athlon i386
gcc -v gives:
Reading specs from /usr/local/lib/gcc/i386-redhat-linux/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --enable-shared --enable-
threads=posix --disable-checking --disable-libunwind-exceptions --with-system-
zlib --enable-__cxa_atexit --host=i386-redhat-linux --enable-
Thread model: posix
gcc version 3.4.1
The error is as follows:
# g++ -O3 -save-temps -o gccerr gccerr.cpp
gccerr.cpp: In function `int main()':
gccerr.cpp:78: internal compiler error: in make_decl_rtl, at varasm.c:752
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I'll attach the processed listing file (bz2 compressed).
The source code is heavily cut down from a real program which failed to build.
The source is small and fully standalone, but don't expect it to run.
Created attachment 6710 [details]
This is the preprocessed source generated when compiling the program
This is the preprocessed source generated when compiling the program using:
*** This bug has been marked as a duplicate of 15461 ***