public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25904] New: ICE on invalid code in switch stmt
@ 2006-01-21 22:47 wwieser at gmx dot de
2006-01-21 23:42 ` [Bug c++/25904] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: wwieser at gmx dot de @ 2006-01-21 22:47 UTC (permalink / raw)
To: gcc-bugs
Using gcc (GCC) 4.1.0 20051026 (experimental),
the following code will generate an ICE.
Sorry, I currently don't have the time to test the latest version of
gcc.
---------<test.cc>----------
void foo()
{
int t;
switch(t)
{
case 0: A();
case 1: A();
}
}
---------------------------
test.cc: In function 'void foo()':
test.cc:6: error: 'A' was not declared in this scope
test.cc:7: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in decl_jump_unsafe, at cp/decl.c:2153
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Regards,
Wolfgang
--
Summary: ICE on invalid code in switch stmt
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wwieser at gmx dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25904
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/25904] ICE on invalid code in switch stmt
2006-01-21 22:47 [Bug c++/25904] New: ICE on invalid code in switch stmt wwieser at gmx dot de
@ 2006-01-21 23:42 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-21 23:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-21 23:42 -------
*** This bug has been marked as a duplicate of 24582 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25904
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-21 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-21 22:47 [Bug c++/25904] New: ICE on invalid code in switch stmt wwieser at gmx dot de
2006-01-21 23:42 ` [Bug c++/25904] " 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).