public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc++/32320] New: [4.1 regression] ICE with invalid template parameter
@ 2007-06-13 15:32 uhle1982 at yahoo dot com
2007-06-24 3:37 ` [Bug objc++/32320] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: uhle1982 at yahoo dot com @ 2007-06-13 15:32 UTC (permalink / raw)
To: gcc-bugs
+++ This bug was initially created as a clone of Bug #27668 +++
The following invalid code snippet triggers an ICE since GCC 3.4.0:
==================================================
template<typename class T, T = T()> struct A {};
template<int> void foo(A<int>);
==================================================
bug.cc:1: error: expected nested-name-specifier before 'class'
bug.cc:1: error: two or more data types in declaration of 'parameter'
bug.cc:1: error: 'struct T' is not a valid type for a template constant
parameter
bug.cc:3: error: type/value mismatch at argument 1 in template parameter list
for 'template<int <anonymous>, void <anonymous> > struct A'
bug.cc:3: error: expected a constant of type 'int', got 'int'
bug.cc:3: internal compiler error: in value_dependent_expression_p, at
cp/pt.c:12489
Please submit a full bug report, [etc.]
--
Summary: [4.1 regression] ICE with invalid template parameter
Product: gcc
Version: new-ra
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: objc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: uhle1982 at yahoo dot com
GCC build triplet: same
GCC host triplet: Seize
GCC target triplet: like
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32320
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug objc++/32320] [4.1 regression] ICE with invalid template parameter
2007-06-13 15:32 [Bug objc++/32320] New: [4.1 regression] ICE with invalid template parameter uhle1982 at yahoo dot com
@ 2007-06-24 3:37 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-24 3:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-06-24 03:37 -------
*** This bug has been marked as a duplicate of 27668 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|blocker |normal
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
Version|new-ra |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32320
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-24 3:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-13 15:32 [Bug objc++/32320] New: [4.1 regression] ICE with invalid template parameter uhle1982 at yahoo dot com
2007-06-24 3:37 ` [Bug objc++/32320] " pinskia 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).