public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28739] New: [4.2 regression] ICE specializing template member of invalid template class
@ 2006-08-15 18:52 reichelt at gcc dot gnu dot org
2006-08-15 18:53 ` [Bug c++/28739] " reichelt at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 18:52 UTC (permalink / raw)
To: gcc-bugs
The following invalid testcase triggers an ICE on mainline:
=========================================
template<void> struct A
{
template<int> struct B {};
};
template<> template<int> struct A<int>::B {};
template<> template<> struct A<int>::B<0> {};
=========================================
bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc:6: error: expected 2 levels of template parms for 'struct A<<template
parameter error> >::B<<anonymous> >', got 1
bug.cc:6: error: redefinition of 'struct A<<template parameter error>
>::B<<anonymous> >'
bug.cc:3: error: previous definition of 'struct A<<template parameter error>
>::B<<anonymous> >'
bug.cc:8: internal compiler error: in lookup_template_class, at cp/pt.c:4555
Please submit a full bug report, [etc.]
If I remove line 6 the ICE happens in the same spot as PR 28736,
so these problems are maybe related.
This is probably fallout from PR 27668.
--
Summary: [4.2 regression] ICE specializing template member of
invalid template class
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
BugsThisDependsOn: 27668
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28739] [4.2 regression] ICE specializing template member of invalid template class
2006-08-15 18:52 [Bug c++/28739] New: [4.2 regression] ICE specializing template member of invalid template class reichelt at gcc dot gnu dot org
@ 2006-08-15 18:53 ` reichelt at gcc dot gnu dot org
2006-08-18 4:43 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 18:53 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28739] [4.2 regression] ICE specializing template member of invalid template class
2006-08-15 18:52 [Bug c++/28739] New: [4.2 regression] ICE specializing template member of invalid template class reichelt at gcc dot gnu dot org
2006-08-15 18:53 ` [Bug c++/28739] " reichelt at gcc dot gnu dot org
@ 2006-08-18 4:43 ` pinskia at gcc dot gnu dot org
2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-18 4:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-18 04:43 -------
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 |2006-08-18 04:43:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28739] [4.2 regression] ICE specializing template member of invalid template class
2006-08-15 18:52 [Bug c++/28739] New: [4.2 regression] ICE specializing template member of invalid template class reichelt at gcc dot gnu dot org
2006-08-15 18:53 ` [Bug c++/28739] " reichelt at gcc dot gnu dot org
2006-08-18 4:43 ` pinskia at gcc dot gnu dot org
@ 2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
2006-08-29 19:02 ` lmillward at gcc dot gnu dot org
2006-08-30 3:38 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:43 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=28739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28739] [4.2 regression] ICE specializing template member of invalid template class
2006-08-15 18:52 [Bug c++/28739] New: [4.2 regression] ICE specializing template member of invalid template class reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
@ 2006-08-29 19:02 ` lmillward at gcc dot gnu dot org
2006-08-30 3:38 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-29 19:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from lmillward at gcc dot gnu dot org 2006-08-29 19:02 -------
This doesn't ICE for me with current mainline - I get the following error
messages:
bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc:6: error: type/value mismatch at argument 1 in template parameter list
for 'template<<declaration error> > struct A'
bug.cc:6: error: expected a constant of type '<type error>', got 'int'
bug.cc:6: error: expected unqualified-id before '{' token
bug.cc:8: error: type/value mismatch at argument 1 in template parameter list
for 'template<<declaration error> > struct A'
bug.cc:8: error: expected a constant of type '<type error>', got 'int'
bug.cc:8: error: expected unqualified-id before '<' token
Can anyone else confirm this?
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lmillward at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28739] [4.2 regression] ICE specializing template member of invalid template class
2006-08-15 18:52 [Bug c++/28739] New: [4.2 regression] ICE specializing template member of invalid template class reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-29 19:02 ` lmillward at gcc dot gnu dot org
@ 2006-08-30 3:38 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-30 3:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-30 03:38 -------
Been fixed since at least "4.2.0 20060826".
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28739
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-08-30 3:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-15 18:52 [Bug c++/28739] New: [4.2 regression] ICE specializing template member of invalid template class reichelt at gcc dot gnu dot org
2006-08-15 18:53 ` [Bug c++/28739] " reichelt at gcc dot gnu dot org
2006-08-18 4:43 ` pinskia at gcc dot gnu dot org
2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
2006-08-29 19:02 ` lmillward at gcc dot gnu dot org
2006-08-30 3:38 ` 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).