public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization
@ 2006-07-11 16:17 reichelt at gcc dot gnu dot org
2006-07-11 16:18 ` [Bug c++/28347] " reichelt at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-11 16:17 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline and the 4.1
branch (introduced after GCC 4.1.1):
=========================================
template<int> void foo()
{
typedef int i = 0;
}
=========================================
bug.cc: In function 'void foo()':
bug.cc:3: error: typedef 'i' is initialized (use __typeof__ instead)
bug.cc:3: internal compiler error: tree check: expected var_decl, have
type_decl in cp_finish_decl, at cp/decl.c:5080
Please submit a full bug report, [etc.]
--
Summary: [4.1/4.2 regression] ICE on typedef with initialization
Product: gcc
Version: 4.2.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=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28347] [4.1/4.2 regression] ICE on typedef with initialization
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
@ 2006-07-11 16:18 ` reichelt at gcc dot gnu dot org
2006-07-17 3:14 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-11 16:18 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28347] [4.1/4.2 regression] ICE on typedef with initialization
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
2006-07-11 16:18 ` [Bug c++/28347] " reichelt at gcc dot gnu dot org
@ 2006-07-17 3:14 ` mmitchel at gcc dot gnu dot org
2006-08-02 21:00 ` lmillward at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 3:14 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=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28347] [4.1/4.2 regression] ICE on typedef with initialization
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
2006-07-11 16:18 ` [Bug c++/28347] " reichelt at gcc dot gnu dot org
2006-07-17 3:14 ` mmitchel at gcc dot gnu dot org
@ 2006-08-02 21:00 ` lmillward at gcc dot gnu dot org
2006-08-02 21:00 ` patchapp at dberlin dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-02 21:00 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|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-08-02 20:59:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28347] [4.1/4.2 regression] ICE on typedef with initialization
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-02 21:00 ` lmillward at gcc dot gnu dot org
@ 2006-08-02 21:00 ` patchapp at dberlin dot org
2006-08-04 18:08 ` lmillward at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-08-02 21:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from patchapp at dberlin dot org 2006-08-02 21:00 -------
Subject: Bug number PR c++/28347
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-08/msg00046.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28347] [4.1/4.2 regression] ICE on typedef with initialization
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-02 21:00 ` patchapp at dberlin dot org
@ 2006-08-04 18:08 ` lmillward at gcc dot gnu dot org
2006-08-04 18:09 ` [Bug c++/28347] [4.1 " lmillward at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-04 18:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from lmillward at gcc dot gnu dot org 2006-08-04 18:08 -------
Subject: Bug 28347
Author: lmillward
Date: Fri Aug 4 18:08:14 2006
New Revision: 115931
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115931
Log:
PR c++/28347
* decl.c (start_decl): Return error_mark_node if a
diagnostic was issed for an invalid typedef initialization.
* g++.dg/ext/typedef-init.C: Add new test for
typedef initialization inside templates. Adjust
existing error markers
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/ext/typedef-init.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28347] [4.1 regression] ICE on typedef with initialization
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-08-04 18:08 ` lmillward at gcc dot gnu dot org
@ 2006-08-04 18:09 ` lmillward at gcc dot gnu dot org
2006-08-04 20:04 ` lmillward at gcc dot gnu dot org
2006-08-04 20:04 ` lmillward at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-04 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from lmillward at gcc dot gnu dot org 2006-08-04 18:09 -------
Fixed on mainline.
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2 regression] ICE on |[4.1 regression] ICE on
|typedef with initialization |typedef with initialization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28347] [4.1 regression] ICE on typedef with initialization
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-08-04 20:04 ` lmillward at gcc dot gnu dot org
@ 2006-08-04 20:04 ` lmillward at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-04 20:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from lmillward at gcc dot gnu dot org 2006-08-04 20:04 -------
Fixed in 4.1.2
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28347] [4.1 regression] ICE on typedef with initialization
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-08-04 18:09 ` [Bug c++/28347] [4.1 " lmillward at gcc dot gnu dot org
@ 2006-08-04 20:04 ` lmillward at gcc dot gnu dot org
2006-08-04 20:04 ` lmillward at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-04 20:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from lmillward at gcc dot gnu dot org 2006-08-04 20:04 -------
Subject: Bug 28347
Author: lmillward
Date: Fri Aug 4 20:03:59 2006
New Revision: 115933
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115933
Log:
PR c++/28347
* decl.c (start_decl): Return error_mark_node if a
diagnostic was issed for an invalid typedef initialization.
* g++.dg/ext/typedef-init.C: Add new test for
typedef initialization inside templates. Adjust
existing error markers.
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/typedef-init.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28347
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-08-04 20:04 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-11 16:17 [Bug c++/28347] New: [4.1/4.2 regression] ICE on typedef with initialization reichelt at gcc dot gnu dot org
2006-07-11 16:18 ` [Bug c++/28347] " reichelt at gcc dot gnu dot org
2006-07-17 3:14 ` mmitchel at gcc dot gnu dot org
2006-08-02 21:00 ` lmillward at gcc dot gnu dot org
2006-08-02 21:00 ` patchapp at dberlin dot org
2006-08-04 18:08 ` lmillward at gcc dot gnu dot org
2006-08-04 18:09 ` [Bug c++/28347] [4.1 " lmillward at gcc dot gnu dot org
2006-08-04 20:04 ` lmillward at gcc dot gnu dot org
2006-08-04 20:04 ` lmillward 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).