Sujet : Re: "A diagram of C23 basic types"
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 07. Apr 2025, 14:46:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86h630dqz2.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> writes:
On 03.04.2025 16:58, David Brown wrote:
>
[...]
>
I know people can use pre-processor conditional compilation based on
__STDC_VERSION__ to complain if code is compiled with an unexpected or
unsupported standard, but few people outside of library header authors
actually do that. I'd really like :
>
#pragma STDC VERSION C17
>
to force the compiler to use the equivalent of "-std=c17
-pedantic-errors" in gcc.
>
(I understand the wish to have that #pragma supported.)
It never will be, for reasons that are quite obvious.