[Bug c/29444] parser bug for variable declaration immediately following case statement in switch block

neil at daikokuya dot co dot uk gcc-bugzilla@gcc.gnu.org
Thu Oct 12 22:28:00 GMT 2006



------- Comment #2 from neil at daikokuya dot co dot uk  2006-10-12 22:27 -------
Subject: Re:  parser bug for variable declaration immediately following case
statement in switch block

pinskia at gcc dot gnu dot org wrote:-

> 
> 
> ------- Comment #1 from pinskia at gcc dot gnu dot org  2006-10-12 20:47 -------
> This is not valid C code.
> even though declarations can appear intermixed with statements, they are still
> not a statement and cannot be placed anywhere a statement can.
> 
> This is a dup of bug 29062.

It's going to keep getting reported until the diagnostic improves and
shows that it's not the compiler that is confused.

Neil.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29444



More information about the Gcc-bugs mailing list