public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53781] New: ICE when compiling a deeply nested template
@ 2012-06-26 16:13 oleg00 at gmail dot com
  2012-06-26 16:51 ` [Bug c++/53781] " oleg00 at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: oleg00 at gmail dot com @ 2012-06-26 16:13 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53781
           Summary: ICE when compiling a deeply nested template
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: oleg00@gmail.com


gcc 4.7.0 crashed when the template nesting level approaches ~35. The code
compiles fine on gcc 4.5.0

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/jpm/ro/3rd/gcc/4.7.0-g++/x86_64-linux-2.6-libc6/libexec/gcc/x86_64-aim-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-aim-linux-gnu
Configured with: ../../src/configure --prefix=/jpm/ro/3rd/gcc/4.7.0-g++/common
--exec-prefix=/jpm/ro/3rd/gcc/4.7.0-g++/x86_64-linux-2.6-libc6
--host=x86_64-aim-linux-gnu --build=x86_64-aim-linux-gnu
--target=x86_64-aim-linux-gnu
--prefix=/jpm/ro/3rd/gcc/4.7.0-g++/x86_64-linux-2.6-libc6
--with-local-prefix=/jpm/ro/3rd/gcc/4.7.0-g++/x86_64-linux-2.6-libc6
--libdir=/jpm/ro/3rd/gcc-runtime/4.7.0-g++/x86_64-linux-2.6-libc6/lib
--oldincludedir=/jpm/ro/3rd/glibc/2.13/x86_64-linux-2.6-libc6/include
--with-gxx-include-dir=/jpm/ro/3rd/gcc/4.7.0-g++/x86_64-linux-2.6-libc6/include
--disable-bootstrap --disable-multilib --disable-nls --enable-shared
--enable-languages=c,c++ --enable-__cxa_atexit CFLAGS='-g -O2 -D__USE_XOPEN2K8'
CXXFLAGS='-g -O2 -D__USE_XOPEN2K8' 'XGCC_FLAGS_FOR_TARGET=-g -O2
-D__USE_XOPEN2K8'
Thread model: posix
gcc version 4.7.0 (GCC)

Preprocessed source is attached.

Compile with:
c++ -O3 -std=c++0x -DNDEBUG gcc.bug.cpp


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-04 16:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26 16:13 [Bug c++/53781] New: ICE when compiling a deeply nested template oleg00 at gmail dot com
2012-06-26 16:51 ` [Bug c++/53781] " oleg00 at gmail dot com
2012-06-26 16:52 ` oleg00 at gmail dot com
2012-06-26 16:55 ` oleg00 at gmail dot com
2012-10-30  0:03 ` paolo.carlini at oracle dot com
2013-05-04 16:36 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).