public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
@ 2006-08-26 22:11 reichelt at gcc dot gnu dot org
2006-08-26 22:16 ` [Bug c++/28861] " reichelt at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-26 22:11 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since GCC 3.4.0:
=================================================
struct A
{
template<template<int> class B> struct B<0>;
};
=================================================
bug.cc:3: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have bound_template_template_parm in
finish_member_template_decl, at cp/pt.c:228
Please submit a full bug report, [etc.]
Before, the code was wrongly accepted. (The fact that in-class specializations
are allowed at all is tracked in PR 28300.)
--
Summary: [4.0/4.1/4.2 regression] ICE on invalid in-class
specialization
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, 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=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
@ 2006-08-26 22:16 ` reichelt at gcc dot gnu dot org
2006-08-31 3:17 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-26 22:16 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
2006-08-26 22:16 ` [Bug c++/28861] " reichelt at gcc dot gnu dot org
@ 2006-08-31 3:17 ` pinskia at gcc dot gnu dot org
2006-08-31 3:20 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-31 3:17 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-31 03:17 -------
Confirmed, we now get an error before ICEing:
t.cc:3: error: name of class shadows template template parameter B
t.cc:3: internal compiler error: tree check: expected record_type or union_type
or qual_union_type, have bound_template_template_parm in
finish_member_template_decl, at cp/pt.c:228
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructio
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |error-recovery
Last reconfirmed|0000-00-00 00:00:00 |2006-08-31 03:17:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
2006-08-26 22:16 ` [Bug c++/28861] " reichelt at gcc dot gnu dot org
2006-08-31 3:17 ` pinskia at gcc dot gnu dot org
@ 2006-08-31 3:20 ` pinskia at gcc dot gnu dot org
2006-09-01 22:05 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-31 3:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-31 03:19 -------
Note the error is recent because one of my builds from 4.2.0 20060826 does not
have the error while the other one does (I don't have the svn revision on my
either).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-31 3:20 ` pinskia at gcc dot gnu dot org
@ 2006-09-01 22:05 ` mmitchel at gcc dot gnu dot org
2006-09-09 13:30 ` lmillward at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-09-01 22:05 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-09-01 22:05 ` mmitchel at gcc dot gnu dot org
@ 2006-09-09 13:30 ` lmillward at gcc dot gnu dot org
2006-09-09 13:38 ` patchapp at dberlin dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-09-09 13:30 UTC (permalink / raw)
To: gcc-bugs
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-08-31 03:17:40 |2006-09-09 13:30:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-09-09 13:30 ` lmillward at gcc dot gnu dot org
@ 2006-09-09 13:38 ` patchapp at dberlin dot org
2006-09-21 18:22 ` lmillward at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: patchapp at dberlin dot org @ 2006-09-09 13:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2006-09-09 13:38 -------
Subject: Bug number PR c++/28861
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00348.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-09-09 13:38 ` patchapp at dberlin dot org
@ 2006-09-21 18:22 ` lmillward at gcc dot gnu dot org
2006-09-21 18:26 ` [Bug c++/28861] [4.0/4.1 " lmillward at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-09-21 18:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from lmillward at gcc dot gnu dot org 2006-09-21 18:22 -------
Subject: Bug 28861
Author: lmillward
Date: Thu Sep 21 18:22:11 2006
New Revision: 117117
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117117
Log:
PR c++/28861
* decl.c (shadow_tag): Return error_mark_node
if maybe_process_partial_specialization failed.
* g++.dg/template/spec32.C: New test.
* g++.dg/parse/crash9.C: Adjust error markers.
Added:
trunk/gcc/testsuite/g++.dg/template/spec32.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/parse/crash9.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-09-21 18:22 ` lmillward at gcc dot gnu dot org
@ 2006-09-21 18:26 ` lmillward at gcc dot gnu dot org
2007-02-03 19:37 ` gdr at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-09-21 18:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from lmillward at gcc dot gnu dot org 2006-09-21 18:26 -------
Fixed in 4.2.
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE on
|on invalid in-class |invalid in-class
|specialization |specialization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-09-21 18:26 ` [Bug c++/28861] [4.0/4.1 " lmillward at gcc dot gnu dot org
@ 2007-02-03 19:37 ` gdr at gcc dot gnu dot org
2007-02-03 20:55 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 19:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from gdr at gcc dot gnu dot org 2007-02-03 19:37 -------
won't fix in GCC-4.0.x. Adjusting milestone.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.4 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-02-03 19:37 ` gdr at gcc dot gnu dot org
@ 2007-02-03 20:55 ` pinskia at gcc dot gnu dot org
2007-02-14 9:17 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:52 ` [Bug c++/28861] [4.1 " jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 20:55 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.3 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.0/4.1 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2007-02-03 20:55 ` pinskia at gcc dot gnu dot org
@ 2007-02-14 9:17 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:52 ` [Bug c++/28861] [4.1 " jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:17 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28861] [4.1 regression] ICE on invalid in-class specialization
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2007-02-14 9:17 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 15:52 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jsm28 at gcc dot gnu dot org 2008-07-04 15:51 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.0.4 |4.0.4 4.1.3
Known to work| |4.2.0
Resolution| |FIXED
Target Milestone|4.1.3 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-07-04 15:52 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-26 22:11 [Bug c++/28861] New: [4.0/4.1/4.2 regression] ICE on invalid in-class specialization reichelt at gcc dot gnu dot org
2006-08-26 22:16 ` [Bug c++/28861] " reichelt at gcc dot gnu dot org
2006-08-31 3:17 ` pinskia at gcc dot gnu dot org
2006-08-31 3:20 ` pinskia at gcc dot gnu dot org
2006-09-01 22:05 ` mmitchel at gcc dot gnu dot org
2006-09-09 13:30 ` lmillward at gcc dot gnu dot org
2006-09-09 13:38 ` patchapp at dberlin dot org
2006-09-21 18:22 ` lmillward at gcc dot gnu dot org
2006-09-21 18:26 ` [Bug c++/28861] [4.0/4.1 " lmillward at gcc dot gnu dot org
2007-02-03 19:37 ` gdr at gcc dot gnu dot org
2007-02-03 20:55 ` pinskia at gcc dot gnu dot org
2007-02-14 9:17 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:52 ` [Bug c++/28861] [4.1 " jsm28 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).