public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36411]  New: [4.4 regression] ICE with invalid template template parameter
@ 2008-06-01 11:14 reichelt at gcc dot gnu dot org
  2008-06-01 11:14 ` [Bug c++/36411] " 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 @ 2008-06-01 11:14 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

==================================================
template<template<void> class> struct A
{
  template<template<int> class T> A<T> foo();
};
==================================================

bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc:3: internal compiler error: in coerce_template_template_parms, at
cp/pt.c:4749
Please submit a full bug report, [etc.]


-- 
           Summary: [4.4 regression] ICE with invalid template template
                    parameter
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=36411


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

* [Bug c++/36411] [4.4 regression] ICE with invalid template template parameter
  2008-06-01 11:14 [Bug c++/36411] New: [4.4 regression] ICE with invalid template template parameter reichelt at gcc dot gnu dot org
@ 2008-06-01 11:14 ` reichelt at gcc dot gnu dot org
  2008-06-01 12:28 ` reichelt 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 @ 2008-06-01 11:14 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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


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

* [Bug c++/36411] [4.4 regression] ICE with invalid template template parameter
  2008-06-01 11:14 [Bug c++/36411] New: [4.4 regression] ICE with invalid template template parameter reichelt at gcc dot gnu dot org
  2008-06-01 11:14 ` [Bug c++/36411] " reichelt at gcc dot gnu dot org
@ 2008-06-01 12:28 ` reichelt at gcc dot gnu dot org
  2008-06-25 12:09 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-06-01 12:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2008-06-01 12:27 -------
Testing a patch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-06-01 12:27:44
               date|                            |


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


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

* [Bug c++/36411] [4.4 regression] ICE with invalid template template parameter
  2008-06-01 11:14 [Bug c++/36411] New: [4.4 regression] ICE with invalid template template parameter reichelt at gcc dot gnu dot org
  2008-06-01 11:14 ` [Bug c++/36411] " reichelt at gcc dot gnu dot org
  2008-06-01 12:28 ` reichelt at gcc dot gnu dot org
@ 2008-06-25 12:09 ` rguenth at gcc dot gnu dot org
  2009-02-22 23:59 ` hjl dot tools at gmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-25 12:09 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


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

* [Bug c++/36411] [4.4 regression] ICE with invalid template template parameter
  2008-06-01 11:14 [Bug c++/36411] New: [4.4 regression] ICE with invalid template template parameter reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-06-25 12:09 ` rguenth at gcc dot gnu dot org
@ 2009-02-22 23:59 ` hjl dot tools at gmail dot com
  2009-02-23 17:43 ` hjl dot tools at gmail dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-22 23:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2009-02-22 23:59 -------
Created an attachment (id=17344)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17344&action=view)
A patch


-- 


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


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

* [Bug c++/36411] [4.4 regression] ICE with invalid template template parameter
  2008-06-01 11:14 [Bug c++/36411] New: [4.4 regression] ICE with invalid template template parameter reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-02-22 23:59 ` hjl dot tools at gmail dot com
@ 2009-02-23 17:43 ` hjl dot tools at gmail dot com
  2009-02-23 22:35 ` hjl at gcc dot gnu dot org
  2009-02-23 22:36 ` hjl dot tools at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-23 17:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl dot tools at gmail dot com  2009-02-23 17:43 -------
Oops. A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00575.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com


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


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

* [Bug c++/36411] [4.4 regression] ICE with invalid template template parameter
  2008-06-01 11:14 [Bug c++/36411] New: [4.4 regression] ICE with invalid template template parameter reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-02-23 17:43 ` hjl dot tools at gmail dot com
@ 2009-02-23 22:35 ` hjl at gcc dot gnu dot org
  2009-02-23 22:36 ` hjl dot tools at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-02-23 22:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hjl at gcc dot gnu dot org  2009-02-23 22:35 -------
Subject: Bug 36411

Author: hjl
Date: Mon Feb 23 22:34:50 2009
New Revision: 144396

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144396
Log:
gcc/cp

2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

        PR c++/36411
        * pt.c (coerce_template_template_parms): Return 0 if parameter
        is error_mark_node.

gcc/testsuite/

2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>

        PR c++/36411
        * g++.dg/template/void14.C: New.

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


-- 


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


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

* [Bug c++/36411] [4.4 regression] ICE with invalid template template parameter
  2008-06-01 11:14 [Bug c++/36411] New: [4.4 regression] ICE with invalid template template parameter reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-02-23 22:35 ` hjl at gcc dot gnu dot org
@ 2009-02-23 22:36 ` hjl dot tools at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-23 22:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hjl dot tools at gmail dot com  2009-02-23 22:35 -------
Fixed.


-- 

hjl dot tools at gmail dot com changed:

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


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


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

end of thread, other threads:[~2009-02-23 22:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-01 11:14 [Bug c++/36411] New: [4.4 regression] ICE with invalid template template parameter reichelt at gcc dot gnu dot org
2008-06-01 11:14 ` [Bug c++/36411] " reichelt at gcc dot gnu dot org
2008-06-01 12:28 ` reichelt at gcc dot gnu dot org
2008-06-25 12:09 ` rguenth at gcc dot gnu dot org
2009-02-22 23:59 ` hjl dot tools at gmail dot com
2009-02-23 17:43 ` hjl dot tools at gmail dot com
2009-02-23 22:35 ` hjl at gcc dot gnu dot org
2009-02-23 22:36 ` hjl dot tools at gmail 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).