[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration

2010-05-09 Thread alex dot pyattaev at gmail dot com
--- Comment #7 from alex dot pyattaev at gmail dot com 2010-05-09 10:29 --- I have encountered the bug with switch construct. And the problem is not the error message, but the fact that it is still compiling just fine this code: switch (chan_prop.model_type

[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration

2010-05-09 Thread alex dot pyattaev at gmail dot com
--- Comment #9 from alex dot pyattaev at gmail dot com 2010-05-09 19:07 --- (In reply to comment #7) > I have encountered the bug with switch construct. And the problem is not the > error message, but the fact that it is still compiling just fine this code: &g

[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration

2010-05-09 Thread alex dot pyattaev at gmail dot com
--- Comment #11 from alex dot pyattaev at gmail dot com 2010-05-09 23:29 --- (In reply to comment #10) > (In reply to comment #9) > > > > A good example of seemingly normal code is following: > > switch (whatever) > > {