This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/29444] parser bug for variable declaration immediately following case statement in switch block
- From: "neil at daikokuya dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2006 22:27:57 -0000
- Subject: [Bug c/29444] parser bug for variable declaration immediately following case statement in switch block
- References: <bug-29444-13396@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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