public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32561] New: [4.3 regression] ICE with duplicate template parameter
@ 2007-06-30 12:59 reichelt at gcc dot gnu dot org
2007-06-30 12:59 ` [Bug c++/32561] " 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 @ 2007-06-30 12:59 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
=============================================
template<int N, int N> struct A;
=============================================
bug.cc:1: internal compiler error: tree check: expected var_decl, have
const_decl in redeclaration_error_message, at cp/decl.c:2198
Please submit a full bug report, [etc.]
The regression was introduced between 2007-06-07 and 2007-06-16,
probably by the patch
2007-06-15 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (DECL_VAR_MARKED_P): Remove.
(DECL_ANON_UNION_VAR_P): New macro.
* class.c (fixed_type_or_null): Tidy. Use a hash table, rather
than DECL_VAR_MARKED_P, to keep track of which variables we have
seen.
* decl.c (redeclaration_error_message): Complain about redeclaring
anonymous union members at namespace scope.
* decl2.c (build_anon_union_vars): Set DECL_ANON_UNION_VAR_P.
--
Summary: [4.3 regression] ICE with duplicate template parameter
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-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=32561
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/32561] [4.3 regression] ICE with duplicate template parameter
2007-06-30 12:59 [Bug c++/32561] New: [4.3 regression] ICE with duplicate template parameter reichelt at gcc dot gnu dot org
@ 2007-06-30 12:59 ` reichelt at gcc dot gnu dot org
2007-07-13 0:56 ` pcarlini at suse dot de
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-06-30 12:59 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=32561
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/32561] [4.3 regression] ICE with duplicate template parameter
2007-06-30 12:59 [Bug c++/32561] New: [4.3 regression] ICE with duplicate template parameter reichelt at gcc dot gnu dot org
2007-06-30 12:59 ` [Bug c++/32561] " reichelt at gcc dot gnu dot org
@ 2007-07-13 0:56 ` pcarlini at suse dot de
2007-07-24 11:08 ` paolo at gcc dot gnu dot org
2007-07-24 11:09 ` pcarlini at suse dot de
3 siblings, 0 replies; 5+ messages in thread
From: pcarlini at suse dot de @ 2007-07-13 0:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pcarlini at suse dot de 2007-07-13 00:56 -------
Seems easy to fix...
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Keywords|ice-on-valid-code |ice-on-invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2007-07-13 00:56:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32561
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/32561] [4.3 regression] ICE with duplicate template parameter
2007-06-30 12:59 [Bug c++/32561] New: [4.3 regression] ICE with duplicate template parameter reichelt at gcc dot gnu dot org
2007-06-30 12:59 ` [Bug c++/32561] " reichelt at gcc dot gnu dot org
2007-07-13 0:56 ` pcarlini at suse dot de
@ 2007-07-24 11:08 ` paolo at gcc dot gnu dot org
2007-07-24 11:09 ` pcarlini at suse dot de
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-07-24 11:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo at gcc dot gnu dot org 2007-07-24 11:08 -------
Subject: Bug 32561
Author: paolo
Date: Tue Jul 24 11:08:27 2007
New Revision: 126873
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126873
Log:
/cp
2007-07-24 Paolo Carlini <pcarlini@suse.de>
PR c++/29001
* typeck.c (check_return_expr): Do not pass a null argument
to null_ptr_cst_p.
2007-07-24 Paolo Carlini <pcarlini@suse.de>
PR c++/32561
* decl.c (redeclaration_error_message): Call DECL_ANON_UNION_VAR_P
only on VAR_DECL.
/testsuite
2007-07-24 Paolo Carlini <pcarlini@suse.de>
PR c++/29001
* g++.dg/init/new22.C: New.
2007-07-24 Paolo Carlini <pcarlini@suse.de>
PR c++/32561
* g++.dg/template/crash67.C: New.
Added:
trunk/gcc/testsuite/g++.dg/init/new22.C
trunk/gcc/testsuite/g++.dg/template/crash67.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32561
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/32561] [4.3 regression] ICE with duplicate template parameter
2007-06-30 12:59 [Bug c++/32561] New: [4.3 regression] ICE with duplicate template parameter reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-07-24 11:08 ` paolo at gcc dot gnu dot org
@ 2007-07-24 11:09 ` pcarlini at suse dot de
3 siblings, 0 replies; 5+ messages in thread
From: pcarlini at suse dot de @ 2007-07-24 11:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pcarlini at suse dot de 2007-07-24 11:09 -------
Fixed.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32561
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-24 11:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-30 12:59 [Bug c++/32561] New: [4.3 regression] ICE with duplicate template parameter reichelt at gcc dot gnu dot org
2007-06-30 12:59 ` [Bug c++/32561] " reichelt at gcc dot gnu dot org
2007-07-13 0:56 ` pcarlini at suse dot de
2007-07-24 11:08 ` paolo at gcc dot gnu dot org
2007-07-24 11:09 ` pcarlini at suse dot de
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).