This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Only allow __label__ at the beginning of compound statements as documented (PR c++/32121)


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]