[Bug c/23895] switch and struct

2005-09-15 Thread neil at daikokuya dot co dot uk
--- Additional Comments From neil at daikokuya dot co dot uk 2005-09-15 22:50 --- Subject: Re: switch and struct pinskia at gcc dot gnu dot org wrote:- > > --- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-15 > 14:22 --- > Small testcase: > void f(int i) >

Re: [Bug c/23895] switch and struct

2005-09-15 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > > --- 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 defintion

[Bug c/23895] switch and struct

2005-09-15 Thread pinskia 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