* Paul Eggert:

> On 2026-04-28 15:07, Karl Berry wrote:
>
>> I think it would be better if autoconf did not switch to such partial
>> implementations of standards, and only switched if the compiler supports
>> the full, final, real standard.
>
> Unfortunately no compiler does that, as far as I know, and even if it
> did it would be hard to test for it.

GCC does it for C++ (well, almost, it can't completely escape the C
header problem).

GCC can't do it for C because it's not a complete C implementation (from
the point of view of most autoconf users).

> All that being said, it would be nice to have a documented-way to say
> "Don't change the C compiler's standard version; just use the
> default."

Agreed, overriding the default seems problematic.  Soon enough, it will
mean downgrading the compiler version.  And can be really problematic
because some installed headers may assume the default GCC version,
especially for C++.

It could be helpful to have an option to lift the standard to a version
that is known to be needed for successful compilation.  But it should
never downgrade the version.

Thanks,
Florian


Reply via email to