public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34757] New: [4.3 regression] ICE with invalid parameters in variadic template
@ 2008-01-12 19:01 reichelt at gcc dot gnu dot org
2008-01-12 19:07 ` [Bug c++/34757] " reichelt at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-12 19:01 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
================================================================
template<typename int M, int N, int (*... p)[N]> struct A {};
A<0> a;
================================================================
bug.cc:1: error: expected nested-name-specifier before 'int'
bug.cc:1: error: two or more data types in declaration of 'M'
bug.cc:1: error: no default argument for 'N'
bug.cc:1: error: no default argument for 'p'
bug.cc:3: error: '<type error>' is not a valid type for a template constant
parameter
bug.cc:3: error: template argument 2 is invalid
bug.cc:3: internal compiler error: tree check: accessed elt 2 of tree_vec with
1 elts in tsubst, at cp/pt.c:8934
Please submit a full bug report, [etc.]
The ICE appeared between 2007-10-13 and 2007-11-13.
Maybe related to PR34751.
--
Summary: [4.3 regression] ICE with invalid parameters in variadic
template
Product: gcc
Version: 4.3.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=34757
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/34757] [4.3 regression] ICE with invalid parameters in variadic template
2008-01-12 19:01 [Bug c++/34757] New: [4.3 regression] ICE with invalid parameters in variadic template reichelt at gcc dot gnu dot org
@ 2008-01-12 19:07 ` reichelt at gcc dot gnu dot org
2008-01-12 20:23 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-12 19:07 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=34757
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/34757] [4.3 regression] ICE with invalid parameters in variadic template
2008-01-12 19:01 [Bug c++/34757] New: [4.3 regression] ICE with invalid parameters in variadic template reichelt at gcc dot gnu dot org
2008-01-12 19:07 ` [Bug c++/34757] " reichelt at gcc dot gnu dot org
@ 2008-01-12 20:23 ` rguenth at gcc dot gnu dot org
2008-01-15 16:41 ` dgregor at gcc dot gnu dot org
2008-01-16 22:22 ` reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-12 20:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2008-01-12 19:44 -------
Confirmed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Priority|P3 |P4
Last reconfirmed|0000-00-00 00:00:00 |2008-01-12 19:44:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34757
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/34757] [4.3 regression] ICE with invalid parameters in variadic template
2008-01-12 19:01 [Bug c++/34757] New: [4.3 regression] ICE with invalid parameters in variadic template reichelt at gcc dot gnu dot org
2008-01-12 19:07 ` [Bug c++/34757] " reichelt at gcc dot gnu dot org
2008-01-12 20:23 ` rguenth at gcc dot gnu dot org
@ 2008-01-15 16:41 ` dgregor at gcc dot gnu dot org
2008-01-16 22:22 ` reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-01-15 16:41 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|2008-01-12 19:44:46 |2008-01-15 16:35:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34757
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/34757] [4.3 regression] ICE with invalid parameters in variadic template
2008-01-12 19:01 [Bug c++/34757] New: [4.3 regression] ICE with invalid parameters in variadic template reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-01-15 16:41 ` dgregor at gcc dot gnu dot org
@ 2008-01-16 22:22 ` reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-16 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2008-01-16 22:09 -------
Fixed.
Probably by the patch for PR34751.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34757
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-16 22:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-12 19:01 [Bug c++/34757] New: [4.3 regression] ICE with invalid parameters in variadic template reichelt at gcc dot gnu dot org
2008-01-12 19:07 ` [Bug c++/34757] " reichelt at gcc dot gnu dot org
2008-01-12 20:23 ` rguenth at gcc dot gnu dot org
2008-01-15 16:41 ` dgregor at gcc dot gnu dot org
2008-01-16 22:22 ` 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).