-std=C++11 and strict ANSI compliance

Jonathan Wakely jwakely.gcc@gmail.com
Wed Jan 22 00:23:00 GMT 2020


On Tue, 21 Jan 2020 at 22:51, Anton Shepelev <anton.txt@gmail.com> wrote:
> Thank you for the explanation.  Is  it  possible  to
> make the current GCC with -std=CNN behave as you in-
> tend it to?  Will, for example, the  following  suf-
> fice:   gcc -std=c++11 -U_GNU_SOURCE   ?

No, if it was that easy it would have been done long ago.

The reason g++ defines _GNU_SOURCE is that libstdc++ relies on GNU
extensions. Until that changes, _GNU_SOURCE needs to be defined.



More information about the Gcc-help mailing list