This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16432] New: ICE with C++ code returning structure when using -O3


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 
involved.

uname -a gives:
Linux barn 2.6.6-1.435.2.3 #1 Thu Jul 1 08:25:29 EDT 2004 i686 athlon i386 
GNU/Linux

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-
languages=c,c++,f77 --disable-libgcj
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.

-- 
           Summary: ICE with C++ code returning structure when using -O3
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: buss at nildram dot co dot uk
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-redhat-linux
  GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16432


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]