This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Only allow __label__ at the beginning of compound statements as documented (PR c++/32121)
- From: Tom Tromey <tromey at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Sep 2007 10:16:13 -0600
- Subject: Re: [C++ PATCH] Only allow __label__ at the beginning of compound statements as documented (PR c++/32121)
- References: <20070927140718.GS2625@devserv.devel.redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:
Jakub> info gcc on __label__ says:
Jakub> Local label declarations must come at the beginning of the block,
Jakub> before any ordinary declarations or statements.
Is there a reason we want this restriction? To me it seems more
"C++-like" to allow label declarations anywhere variable declarations
are allowed. I would tend to allow __label__ declarations to be mixed
with code in C99 mode as well.
Tom