--- Comment #2 from price at ifa dot hawaii dot edu 2007-05-17 03:19
---
This is also a problem on my amd64 Gentoo laptop, using gcc version Gentoo
4.1.1-r3.
I searched the binutils Bugzilla, but could not find a bug filed for this
problem.
Because the problem disappears when
--- Additional Comments From price at ifa dot hawaii dot edu 2005-09-15
18:44 ---
To get it to compile, use curly brackets after the "case":
case 1:
{
int y = 7;
}
I would suggest that the existence of several duplicates argue for a clearer
err
--- Additional Comments From price at ifa dot hawaii dot edu 2005-08-12
20:48 ---
Just noticed that 3.4.3 calls it a "parse error", but 3.2.3 calls it a "syntax
error":
[EMAIL PROTECTED]:/home/mithrandir/price/IP3/scripts/src/phase2>gcc -std=c99
test.c -o test
te
, ssp-3.4.3-0, pie-8.7.7)
--
Summary: Declaration within case statement produces syntax error
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu