public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34274] [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
@ 2007-11-28 21:40 ` reichelt at gcc dot gnu dot org
  2007-12-02 21:19 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-28 21:40 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/34274]  New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
@ 2007-11-28 21:40 reichelt at gcc dot gnu dot org
  2007-11-28 21:40 ` [Bug c++/34274] " reichelt at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-28 21:40 UTC (permalink / raw)
  To: gcc-bugs

A broken diagnostic is issued by mainline for the following code snippet:

===============================================================
template<int> struct A
{
  template<template<void> class> struct B {};
};

A<0> a;
===============================================================

bug.cc:3: error: 'void' is not a valid type for a template constant parameter
bug.cc: In instantiation of 'A<0>':
bug.cc:6:   instantiated from here
bug.cc:3: error: type/value mismatch at argument 1 in template parameter list
for 'template<int <anonymous> > template<template<template<<declaration error>
> class<template-parameter-2-1> > template<int <anonymous> >
template<<declaration error> > class<template-parameter-2-1> > struct
A<<anonymous> >::B'
bug.cc:3: error:   expected a template of type 'template<int <anonymous> >
template<<declaration error> > class<template-parameter-2-1>', got
'#'template_template_parm' not supported by dump_decl#<declaration error>'
bug.cc:3: error: type/value mismatch at argument 1 in template parameter list
for 'template<int <anonymous> > template<template<template<<declaration error>
> class<template-parameter-2-1> > template<int <anonymous> >
template<<declaration error> > class<template-parameter-2-1> > struct
A<<anonymous> >::B'
bug.cc:3: error:   expected a template of type 'template<int <anonymous> >
template<<declaration error> > class<template-parameter-2-1>', got
'#'template_template_parm' not supported by dump_decl#<declaration error>'

First, the error message includes:
  'template_template_parm' not supported by dump_decl
Second, the error message is given twice.

Btw, the code triggered an ICE in GCC 4.2.x.


-- 
           Summary: [4.3 regression] Broken diagnostic:
                    'template_template_parm' not supported by dump_decl
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic, 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=34274


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

* [Bug c++/34274] [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
  2007-11-28 21:40 ` [Bug c++/34274] " reichelt at gcc dot gnu dot org
@ 2007-12-02 21:19 ` pinskia at gcc dot gnu dot org
  2007-12-12 20:57 ` mmitchel at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-02 21:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-12-02 21:19 -------
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-12-02 21:19:07
               date|                            |


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


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

* [Bug c++/34274] [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
  2007-11-28 21:40 ` [Bug c++/34274] " reichelt at gcc dot gnu dot org
  2007-12-02 21:19 ` pinskia at gcc dot gnu dot org
@ 2007-12-12 20:57 ` mmitchel at gcc dot gnu dot org
  2008-03-15  0:44 ` [Bug c++/34274] [4.3/4.4 " jsm28 at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-12-12 20:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/34274] [4.3/4.4 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-12-12 20:57 ` mmitchel at gcc dot gnu dot org
@ 2008-03-15  0:44 ` jsm28 at gcc dot gnu dot org
  2008-06-06 15:03 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-03-15  0:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jsm28 at gcc dot gnu dot org  2008-03-15 00:42 -------
Update milestone after 4.3.0 release.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.0                       |4.3.1


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


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

* [Bug c++/34274] [4.3/4.4 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-03-15  0:44 ` [Bug c++/34274] [4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2008-06-06 15:03 ` rguenth at gcc dot gnu dot org
  2008-08-27 22:12 ` jsm28 at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-06 15:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-06-06 14:58 -------
4.3.1 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.1                       |4.3.2


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


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

* [Bug c++/34274] [4.3/4.4 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-06-06 15:03 ` rguenth at gcc dot gnu dot org
@ 2008-08-27 22:12 ` jsm28 at gcc dot gnu dot org
  2009-01-24 10:22 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-08-27 22:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2008-08-27 22:03 -------
4.3.2 is released, changing milestones to 4.3.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.2                       |4.3.3


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


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

* [Bug c++/34274] [4.3/4.4 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-08-27 22:12 ` jsm28 at gcc dot gnu dot org
@ 2009-01-24 10:22 ` rguenth at gcc dot gnu dot org
  2009-08-04 12:42 ` [Bug c++/34274] [4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-24 10:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-01-24 10:20 -------
GCC 4.3.3 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.3                       |4.3.4


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


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

* [Bug c++/34274] [4.3/4.4/4.5 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-01-24 10:22 ` rguenth at gcc dot gnu dot org
@ 2009-08-04 12:42 ` rguenth at gcc dot gnu dot org
  2009-11-13 18:21 ` jason at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-08-04 12:28 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug c++/34274] [4.3/4.4/4.5 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-08-04 12:42 ` [Bug c++/34274] [4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
@ 2009-11-13 18:21 ` jason at gcc dot gnu dot org
  2009-11-13 18:47 ` jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 18:21 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-12-02 21:19:07         |2009-11-13 18:21:04
               date|                            |


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


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

* [Bug c++/34274] [4.3/4.4/4.5 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-11-13 18:21 ` jason at gcc dot gnu dot org
@ 2009-11-13 18:47 ` jason at gcc dot gnu dot org
  2009-11-13 18:48 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 18:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jason at gcc dot gnu dot org  2009-11-13 18:47 -------
Subject: Bug 34274

Author: jason
Date: Fri Nov 13 18:46:47 2009
New Revision: 154164

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154164
Log:
        PR c++/27425
        PR c++/34274
        * pt.c (expand_template_argument_pack): Handle null arg gracefully.
        (convert_template_argument): Use %T for type.

Added:
    trunk/gcc/testsuite/g++.dg/template/arg7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/34274] [4.3/4.4/4.5 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-11-13 18:47 ` jason at gcc dot gnu dot org
@ 2009-11-13 18:48 ` jason at gcc dot gnu dot org
  2009-12-11  5:27 ` jason at gcc dot gnu dot org
  2009-12-15 16:16 ` reichelt at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 18:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jason at gcc dot gnu dot org  2009-11-13 18:48 -------
Fixed for 4.5.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.3.5                       |4.5.0


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


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

* [Bug c++/34274] [4.3/4.4/4.5 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2009-11-13 18:48 ` jason at gcc dot gnu dot org
@ 2009-12-11  5:27 ` jason at gcc dot gnu dot org
  2009-12-15 16:16 ` reichelt at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-11  5:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jason at gcc dot gnu dot org  2009-12-11 05:27 -------
Subject: Bug 34274

Author: jason
Date: Fri Dec 11 05:26:51 2009
New Revision: 155149

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155149
Log:
        PR c++/27425
        PR c++/34274
        PR c++/42301
        * pt.c (expand_template_argument_pack): Handle null arg gracefully.
        (convert_template_argument): Use %T for type.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/arg7.C
Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/pt.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/34274] [4.3/4.4/4.5 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl
  2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2009-12-11  5:27 ` jason at gcc dot gnu dot org
@ 2009-12-15 16:16 ` reichelt at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-12-15 16:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.0                       |4.4.3


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


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

end of thread, other threads:[~2009-12-15 16:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-28 21:40 [Bug c++/34274] New: [4.3 regression] Broken diagnostic: 'template_template_parm' not supported by dump_decl reichelt at gcc dot gnu dot org
2007-11-28 21:40 ` [Bug c++/34274] " reichelt at gcc dot gnu dot org
2007-12-02 21:19 ` pinskia at gcc dot gnu dot org
2007-12-12 20:57 ` mmitchel at gcc dot gnu dot org
2008-03-15  0:44 ` [Bug c++/34274] [4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-06-06 15:03 ` rguenth at gcc dot gnu dot org
2008-08-27 22:12 ` jsm28 at gcc dot gnu dot org
2009-01-24 10:22 ` rguenth at gcc dot gnu dot org
2009-08-04 12:42 ` [Bug c++/34274] [4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
2009-11-13 18:21 ` jason at gcc dot gnu dot org
2009-11-13 18:47 ` jason at gcc dot gnu dot org
2009-11-13 18:48 ` jason at gcc dot gnu dot org
2009-12-11  5:27 ` jason at gcc dot gnu dot org
2009-12-15 16:16 ` reichelt 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).