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

* [Bug c++/53781] ICE when compiling a deeply nested template
  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 ` oleg00 at gmail dot com
  2012-06-26 16:52 ` oleg00 at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: oleg00 at gmail dot com @ 2012-06-26 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Oleg Grunin <oleg00 at gmail dot com> 2012-06-26 16:51:15 UTC ---
Created attachment 27707
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27707
bzipped precompiled source part 1


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

* [Bug c++/53781] ICE when compiling a deeply nested template
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: oleg00 at gmail dot com @ 2012-06-26 16:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Oleg Grunin <oleg00 at gmail dot com> 2012-06-26 16:52:17 UTC ---
Created attachment 27708
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27708
bzipped precompiled source part 2


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

* [Bug c++/53781] ICE when compiling a deeply nested template
  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
  4 siblings, 0 replies; 6+ messages in thread
From: oleg00 at gmail dot com @ 2012-06-26 16:55 UTC (permalink / raw)
  To: gcc-bugs

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

Oleg Grunin <oleg00 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oleg00 at gmail dot com
            Version|unknown                     |4.7.0

--- Comment #3 from Oleg Grunin <oleg00 at gmail dot com> 2012-06-26 16:55:15 UTC ---
To recreate the precompiled source:

cat xaa xab > gnu.bug.cpp.bz2
bunzip gnu.bug.cpp.bz2


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

* [Bug c++/53781] ICE when compiling a deeply nested template
  2012-06-26 16:13 [Bug c++/53781] New: ICE when compiling a deeply nested template oleg00 at gmail dot com
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-30  0:03 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-10-30
                 CC|oleg00 at gmail dot com     |
     Ever Confirmed|0                           |1

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-30 00:02:55 UTC ---
Please test more recent 4.7.x releases and, in case the bug still reproduces
for you, please reduce the code to a manageable size (there are many tools
available for that, eg, delta, c-reduce, etc). Thanks.


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

* [Bug c++/53781] ICE when compiling a deeply nested template
  2012-06-26 16:13 [Bug c++/53781] New: ICE when compiling a deeply nested template oleg00 at gmail dot com
                   ` (3 preceding siblings ...)
  2012-10-30  0:03 ` paolo.carlini at oracle dot com
@ 2013-05-04 16:36 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-04 16:36 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-05-04 16:36:14 UTC ---
Feedback not forthcoming.


^ 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).