public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13072] New: Bogus warning with VLA in switch
@ 2003-11-16 13:18 falk at debian dot org
2003-11-16 20:05 ` [Bug c/13072] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: falk at debian dot org @ 2003-11-16 13:18 UTC (permalink / raw)
To: gcc-bugs
falk@juist:/tmp% cat test.c
int main (void)
{
int foo = 0;
int bar;
int len = 5;
switch(foo)
{
case 0:
bar = 1;
char buf[len];
}
return 0;
}
falk@juist:/tmp% gcc-3.3 -g -c test.c
test.c: In function `main':
test.c:6: warning: unreachable code at beginning of switch statement
--
Summary: Bogus warning with VLA in switch
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13072
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/13072] Bogus warning with VLA in switch
2003-11-16 13:18 [Bug c/13072] New: Bogus warning with VLA in switch falk at debian dot org
@ 2003-11-16 20:05 ` pinskia at gcc dot gnu dot org
2003-12-04 18:40 ` pinskia at gcc dot gnu dot org
2004-05-13 21:04 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-16 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-16 20:05 -------
I can confirm this on the mainline (20031116) and 3.3.2 (20030908).
The tree-ssa (20031116) is just fine.
It has been fail since at least 2000-12-31.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-16 20:05:21
date| |
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13072
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/13072] Bogus warning with VLA in switch
2003-11-16 13:18 [Bug c/13072] New: Bogus warning with VLA in switch falk at debian dot org
2003-11-16 20:05 ` [Bug c/13072] " pinskia at gcc dot gnu dot org
@ 2003-12-04 18:40 ` pinskia at gcc dot gnu dot org
2004-05-13 21:04 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-04 18:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-04 18:40 -------
Suspending as this is fixed on the tree-ssa already.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
Target Milestone|3.3.3 |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13072
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/13072] Bogus warning with VLA in switch
2003-11-16 13:18 [Bug c/13072] New: Bogus warning with VLA in switch falk at debian dot org
2003-11-16 20:05 ` [Bug c/13072] " pinskia at gcc dot gnu dot org
2003-12-04 18:40 ` pinskia at gcc dot gnu dot org
@ 2004-05-13 21:04 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 21:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-13 11:48 -------
Fixed for 3.5.0 by the merge of the tree-ssa.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |RESOLVED
Resolution| |FIXED
Target Milestone|tree-ssa |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13072
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-05-13 11:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-16 13:18 [Bug c/13072] New: Bogus warning with VLA in switch falk at debian dot org
2003-11-16 20:05 ` [Bug c/13072] " pinskia at gcc dot gnu dot org
2003-12-04 18:40 ` pinskia at gcc dot gnu dot org
2004-05-13 21:04 ` 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).