[Bug c/85995] GCC defines __STDC__ and __STDC_VERSION__ even when used with options that break C conformance

vincent-gcc at vinc17 dot net gcc-bugzilla@gcc.gnu.org
Thu May 31 00:09:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85995

--- Comment #2 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
I don't see the point of defining both __STDC__ and __STDC_VERSION__ if GCC
cannot guarantee anything about standard conformance. With the current state,
it is not possible to test these macros in order to write code based on the C
standard, which could fail otherwise.


More information about the Gcc-bugs mailing list