public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31993]  New: [4.3 regression] ICE with template class in variadic template class
@ 2007-05-18 21:58 reichelt at gcc dot gnu dot org
  2007-05-18 22:00 ` [Bug c++/31993] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-05-18 21:58 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet with variadic templates triggers an ICE
on mainline:

=============================================
template<typename...> struct A;

template<template<int> class... T> struct A<T<0>...>
{
  template<int> struct B {};
  B<0> b;
};
=============================================

bug.cc:6: internal compiler error: tree check: expected tree that contains
'decl non-common' structure, have 'template_template_parm' in
convert_template_argument, at cp/pt.c:4665
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with template class in variadic
                    template class
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/31993] [4.3 regression] ICE with template class in variadic template class
  2007-05-18 21:58 [Bug c++/31993] New: [4.3 regression] ICE with template class in variadic template class reichelt at gcc dot gnu dot org
@ 2007-05-18 22:00 ` reichelt at gcc dot gnu dot org
  2007-05-22 22:18 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-05-18 22:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dgregor at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/31993] [4.3 regression] ICE with template class in variadic template class
  2007-05-18 21:58 [Bug c++/31993] New: [4.3 regression] ICE with template class in variadic template class reichelt at gcc dot gnu dot org
  2007-05-18 22:00 ` [Bug c++/31993] " reichelt at gcc dot gnu dot org
@ 2007-05-22 22:18 ` pinskia at gcc dot gnu dot org
  2007-06-29 18:30 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-22 22:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-05-22 23:18 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-05-22 23:18:30
               date|                            |


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


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

* [Bug c++/31993] [4.3 regression] ICE with template class in variadic template class
  2007-05-18 21:58 [Bug c++/31993] New: [4.3 regression] ICE with template class in variadic template class reichelt at gcc dot gnu dot org
  2007-05-18 22:00 ` [Bug c++/31993] " reichelt at gcc dot gnu dot org
  2007-05-22 22:18 ` pinskia at gcc dot gnu dot org
@ 2007-06-29 18:30 ` mmitchel at gcc dot gnu dot org
  2007-07-03 18:06 ` dgregor at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-06-29 18:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug c++/31993] [4.3 regression] ICE with template class in variadic template class
  2007-05-18 21:58 [Bug c++/31993] New: [4.3 regression] ICE with template class in variadic template class reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-06-29 18:30 ` mmitchel at gcc dot gnu dot org
@ 2007-07-03 18:06 ` dgregor at gcc dot gnu dot org
  2007-10-19 20:07 ` janis at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2007-07-03 18:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

dgregor at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dgregor at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-05-22 23:18:30         |2007-07-03 18:06:01
               date|                            |


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


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

* [Bug c++/31993] [4.3 regression] ICE with template class in variadic template class
  2007-05-18 21:58 [Bug c++/31993] New: [4.3 regression] ICE with template class in variadic template class reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-07-03 18:06 ` dgregor at gcc dot gnu dot org
@ 2007-10-19 20:07 ` janis at gcc dot gnu dot org
  2007-10-30 13:37 ` dgregor at gcc dot gnu dot org
  2007-10-30 13:45 ` dgregor at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2007-10-19 20:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from janis at gcc dot gnu dot org  2007-10-19 20:07 -------
This isn't a regression.  The error is reported with a compiler from 20070210,
the day after support for variadic templates was added.


-- 


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


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

* [Bug c++/31993] [4.3 regression] ICE with template class in variadic template class
  2007-05-18 21:58 [Bug c++/31993] New: [4.3 regression] ICE with template class in variadic template class reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-10-19 20:07 ` janis at gcc dot gnu dot org
@ 2007-10-30 13:37 ` dgregor at gcc dot gnu dot org
  2007-10-30 13:45 ` dgregor at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2007-10-30 13:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dgregor at gcc dot gnu dot org  2007-10-30 13:37 -------
Subject: Bug 31993

Author: dgregor
Date: Tue Oct 30 13:36:34 2007
New Revision: 129773

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129773
Log:
2007-10-30  Douglas Gregor  <doug.gregor@gmail.com>

        PR c++/31993
        PR c++/32252
        * pt.c (find_parameter_packs_r): Fix typo in comment.
        (convert_template_argument): Look at the pattern of a pack
        expansion to determine what kind of entity we're converting.
        (coerce_template_parameter_pack): When we have coerced a non-type
        template parameter pack, substitute into the type of that pack.
        (tsubst_pack_expansion): When our substitution of a parameter pack
        is a "trivial" substitution of itself, just substitute into the
        pack expansion rather than actually expanding.

2007-10-30  Douglas Gregor  <doug.gregor@gmail.com>

        PR c++/31993
        PR c++/32252
        * g++.dg/cpp0x/pr31993.C: New
        * g++.dg/cpp0x/pr32252.C: New

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr31993.C
    trunk/gcc/testsuite/g++.dg/cpp0x/pr32252.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/crash36.C


-- 


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


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

* [Bug c++/31993] [4.3 regression] ICE with template class in variadic template class
  2007-05-18 21:58 [Bug c++/31993] New: [4.3 regression] ICE with template class in variadic template class reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-10-30 13:37 ` dgregor at gcc dot gnu dot org
@ 2007-10-30 13:45 ` dgregor at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2007-10-30 13:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dgregor at gcc dot gnu dot org  2007-10-30 13:45 -------
Fixed.


-- 

dgregor at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2007-10-30 13:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-18 21:58 [Bug c++/31993] New: [4.3 regression] ICE with template class in variadic template class reichelt at gcc dot gnu dot org
2007-05-18 22:00 ` [Bug c++/31993] " reichelt at gcc dot gnu dot org
2007-05-22 22:18 ` pinskia at gcc dot gnu dot org
2007-06-29 18:30 ` mmitchel at gcc dot gnu dot org
2007-07-03 18:06 ` dgregor at gcc dot gnu dot org
2007-10-19 20:07 ` janis at gcc dot gnu dot org
2007-10-30 13:37 ` dgregor at gcc dot gnu dot org
2007-10-30 13:45 ` dgregor at gcc dot gnu dot 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).