On 12/06/2014 15:23, Teddy Hogeborn wrote:
> Sylvestre Ledru <[email protected]> writes:
> 
>> Nested functions are NOT part of the C and C++ standard:
>> http://en.wikipedia.org/wiki/Nested_function#Languages
>>
>> The gcc support is a mistake.
> 
> "Nested functions" is an official GCC extension:
> 
> https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Nested-Functions.html
Yes. It has been implemented as a side effect of the ADA support in gcc
(just like Variable Length Array).
It is not because gcc supports it that it is standard C...

Arthur's patch is doing the correct implementation (static function in
the same object file).

Sylvestre



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to