public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030
@ 2011-10-24 12:50 cas43 at cs dot stanford.edu
  2011-10-24 14:06 ` [Bug c++/50852] [4.6/4.7 Regression] " paolo.carlini at oracle dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: cas43 at cs dot stanford.edu @ 2011-10-24 12:50 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50852
           Summary: ICE: internal compiler error: in tsubst, at
                    cp/pt.c:11030
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: cas43@cs.stanford.edu


Created attachment 25592
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25592
Compiling this file causes ICE

ICE on compiling attached file.

How to reproduce: /home/cas43/new-gcc/inst/bin/g++ prog.ii

Diagnostic:

prog.cpp: In instantiation of ‘class D<B<A<1> >, 3>’:
prog.cpp:13:16:   required from here
prog.cpp:11:23: internal compiler error: in tsubst, at cp/pt.c:11030
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Compiler version:

/home/cas43/new-gcc/inst/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/home/cas43/new-gcc/inst/bin/g++
COLLECT_LTO_WRAPPER=/home/cas43/new-gcc/inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../current-gcc/configure --prefix=/home/cas43/new-gcc/inst
Thread model: posix
gcc version 4.7.0 20111024 (experimental) (GCC)


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
@ 2011-10-24 14:06 ` paolo.carlini at oracle dot com
  2011-10-27  9:24 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-24 14:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-10-24
            Summary|ICE: internal compiler      |[4.6/4.7 Regression] ICE:
                   |error: in tsubst, at        |internal compiler error: in
                   |cp/pt.c:11030               |tsubst, at cp/pt.c:11030
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-24 14:06:03 UTC ---
Apparently 4.5.x didn't crash.


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
  2011-10-24 14:06 ` [Bug c++/50852] [4.6/4.7 Regression] " paolo.carlini at oracle dot com
@ 2011-10-27  9:24 ` rguenth at gcc dot gnu.org
  2011-10-27 11:42 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-27  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.3


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
  2011-10-24 14:06 ` [Bug c++/50852] [4.6/4.7 Regression] " paolo.carlini at oracle dot com
  2011-10-27  9:24 ` rguenth at gcc dot gnu.org
@ 2011-10-27 11:42 ` rguenth at gcc dot gnu.org
  2011-11-08  0:46 ` jason at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-27 11:42 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |4.5.2


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (2 preceding siblings ...)
  2011-10-27 11:42 ` rguenth at gcc dot gnu.org
@ 2011-11-08  0:46 ` jason at gcc dot gnu.org
  2011-11-14 20:44 ` dodji at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2011-11-08  0:46 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dodji at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-08 00:43:49 UTC ---
Here we treat the two typename U::Ls being as equivalent, but then when we go
to substitute into C::X with the arguments for D, it fails because D's second
parameter is non-type.  Dodji?


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (3 preceding siblings ...)
  2011-11-08  0:46 ` jason at gcc dot gnu.org
@ 2011-11-14 20:44 ` dodji at gcc dot gnu.org
  2011-11-21 15:06 ` dodji at seketeli dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-11-14 20:44 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (4 preceding siblings ...)
  2011-11-14 20:44 ` dodji at gcc dot gnu.org
@ 2011-11-21 15:06 ` dodji at seketeli dot org
  2012-03-01 15:09 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dodji at seketeli dot org @ 2011-11-21 15:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from dodji at seketeli dot org <dodji at seketeli dot org> 2011-11-21 14:43:25 UTC ---
A candidate patch was sent to
http://gcc.gnu.org/ml/gcc-patches/2011-11/msg01859.html for this.


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (5 preceding siblings ...)
  2011-11-21 15:06 ` dodji at seketeli dot org
@ 2012-03-01 15:09 ` jakub at gcc dot gnu.org
  2012-07-05 18:05 ` [Bug c++/50852] [4.6/4.7/4.8 " jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-01 15:09 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.3                       |4.6.4

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-01 14:38:37 UTC ---
GCC 4.6.3 is being released.


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

* [Bug c++/50852] [4.6/4.7/4.8 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (6 preceding siblings ...)
  2012-03-01 15:09 ` jakub at gcc dot gnu.org
@ 2012-07-05 18:05 ` jason at gcc dot gnu.org
  2012-07-05 19:39 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-05 18:05 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|dodji at gcc dot gnu.org    |jason at gcc dot gnu.org

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-05 18:05:21 UTC ---
Trying a different approach.


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

* [Bug c++/50852] [4.6/4.7/4.8 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (7 preceding siblings ...)
  2012-07-05 18:05 ` [Bug c++/50852] [4.6/4.7/4.8 " jason at gcc dot gnu.org
@ 2012-07-05 19:39 ` jason at gcc dot gnu.org
  2012-07-05 19:43 ` [Bug c++/50852] [4.6/4.7 " jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-05 19:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-05 19:39:07 UTC ---
Author: jason
Date: Thu Jul  5 19:39:01 2012
New Revision: 189298

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189298
Log:
    PR c++/50852
    PR c++/53039
    * tree.c (strip_typedefs_expr): New.
    * cp-tree.h: Declare it.
    * pt.c (convert_template_argument, unify): Use it.
    * parser.c (cp_parser_template_declaration_after_export): Don't call
    fixup_template_parms.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic133.C
    trunk/gcc/testsuite/g++.dg/template/typedef39.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/template/param1.C


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (8 preceding siblings ...)
  2012-07-05 19:39 ` jason at gcc dot gnu.org
@ 2012-07-05 19:43 ` jason at gcc dot gnu.org
  2012-11-29 20:17 ` jason at gcc dot gnu.org
  2012-11-29 20:30 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-05 19:43 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.6/4.7/4.8 Regression]    |[4.6/4.7 Regression] ICE:
                   |ICE: internal compiler      |internal compiler error: in
                   |error: in tsubst, at        |tsubst, at cp/pt.c:11030
                   |cp/pt.c:11030               |

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-05 19:42:58 UTC ---
Fixed on trunk for now.


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (9 preceding siblings ...)
  2012-07-05 19:43 ` [Bug c++/50852] [4.6/4.7 " jason at gcc dot gnu.org
@ 2012-11-29 20:17 ` jason at gcc dot gnu.org
  2012-11-29 20:30 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-11-29 20:17 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2012-11-29 20:16:56 UTC ---
Author: jason
Date: Thu Nov 29 20:16:46 2012
New Revision: 193955

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193955
Log:
    PR c++/50852
    PR c++/53039
    * tree.c (strip_typedefs_expr): New.
    * cp-tree.h: Declare it.
    * pt.c (convert_template_argument, unify): Use it.
    * parser.c (cp_parser_template_declaration_after_export): Don't call
    fixup_template_parms.

    * cp-tree.h (TEMPLATE_PARM_NUM_SIBLINGS): Remove.
    (struct template_parm_index_s): Remove num_siblings.
    * pt.c (fixup_template_parms, fixup_template_parm_index): Remove.
    (fixup_template_type_parm_type): Remove.
    (build_template_parm_index): Remove num_siblings parm.
    (process_template_parm): Likewise.
    * parser.c (cp_parser_template_parameter_list): Adjust.
    * tree.c (cp_tree_equal): Don't compare num_siblings.
    * typeck.c (comp_template_parms_position): Likewise.

    * pt.c (arg_from_parm_pack_p): Go back to using same_type_p or
    cp_tree_equal.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/alias-decl-20.C
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/variadic133.C
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/template/typedef39.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/cp-tree.h
    branches/gcc-4_7-branch/gcc/cp/parser.c
    branches/gcc-4_7-branch/gcc/cp/pt.c
    branches/gcc-4_7-branch/gcc/cp/tree.c
    branches/gcc-4_7-branch/gcc/cp/typeck.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/template/param1.C


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

* [Bug c++/50852] [4.6/4.7 Regression] ICE: internal compiler error: in tsubst, at cp/pt.c:11030
  2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
                   ` (10 preceding siblings ...)
  2012-11-29 20:17 ` jason at gcc dot gnu.org
@ 2012-11-29 20:30 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2012-11-29 20:30 UTC (permalink / raw)
  To: gcc-bugs


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.6.4                       |4.7.3

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-11-29 20:29:54 UTC ---
The patch on trunk doesn't seem to have caused any trouble, so I've applied it
for 4.7.3 as well.


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

end of thread, other threads:[~2012-11-29 20:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24 12:50 [Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 cas43 at cs dot stanford.edu
2011-10-24 14:06 ` [Bug c++/50852] [4.6/4.7 Regression] " paolo.carlini at oracle dot com
2011-10-27  9:24 ` rguenth at gcc dot gnu.org
2011-10-27 11:42 ` rguenth at gcc dot gnu.org
2011-11-08  0:46 ` jason at gcc dot gnu.org
2011-11-14 20:44 ` dodji at gcc dot gnu.org
2011-11-21 15:06 ` dodji at seketeli dot org
2012-03-01 15:09 ` jakub at gcc dot gnu.org
2012-07-05 18:05 ` [Bug c++/50852] [4.6/4.7/4.8 " jason at gcc dot gnu.org
2012-07-05 19:39 ` jason at gcc dot gnu.org
2012-07-05 19:43 ` [Bug c++/50852] [4.6/4.7 " jason at gcc dot gnu.org
2012-11-29 20:17 ` jason at gcc dot gnu.org
2012-11-29 20:30 ` jason at gcc dot gnu.org

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