Re: configure adds -std=gnu++11 to CXX variable
Jason Merrill <[email protected]> Tue, 28 May 2024 11:01:49 -0400
| Newsgroups | gmane.comp.sysutils.autoconf.general,gmane.comp.gcc.devel |
|---|---|
| Message-ID | <CADzB+2=DP70-4dm47LXi18Ehd3U-fsXYDX_+NzOUaHi0c9Hrrg@mail.gmail.com> |
On Tue, May 28, 2024 at 10:36 AM Paul Eggert <[email protected]> wrote: > > On 2024-05-28 01:20, Jonathan Wakely wrote: > > I am not aware of any distro ever changing the default -std setting for g++ > > or clang++. Are you attempting to solve a non-problem, but introducing new > > ones? > > If it's a non-problem for C++, why does Autoconf upgrade to C++11 when > the default is C++98? Autoconf has done so since Autoconf 2.70 (2020), > with nobody complaining as far as I know. > > Was the Autoconf 2.70 change done so late that it had no practical > effect, because no distro was defaulting to C++98 any more? Yes, the GCC default changed from C++98 to C++14 in GCC 6 (2016). > If so, it sounds like Autoconf should go back to its 2.69 behavior and not mess > with the C++ version as that's more likely to hurt than help. Not by default, certainly. > For background on that Autoconf 2.70 change, see this 2013 thread: > > https://lists.gnu.org/r/autoconf/2013-01/msg00016.html >