This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23895] switch and struct
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2005 14:22:48 -0000
- Subject: [Bug c/23895] switch and struct
- References: <20050915135704.23895.eroenj@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-15 14:22 -------
Small testcase:
void f(int i)
{
switch (i)
{
case 1:
struct a *b;
}
}
But IIRC this is invalid code as variable defintions are not allowed right after a label.
void f(int i)
{
a:
struct a *b;
}
In fact This is a dup of bug 7508.
*** This bug has been marked as a duplicate of 7508 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23895