bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: declaration after label


From: Bruno Haible
Subject: Re: declaration after label
Date: Thu, 04 Apr 2024 00:50:43 +0200

Paul Eggert wrote:
> > Did C23 change this or is it just a compiler extension?
> 
> C23 changed this. In C23 you can put a label before a declaration, or 
> before "}".

... and GCC ≥ 11 allows it also when compiling with -std=gnu99 or -std=gnu11. 
[1]

[1] 
https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Mixed-Labels-and-Declarations.html






reply via email to

[Prev in Thread] Current Thread [Next in Thread]