On 10/31/19, Pedro Alves <pe...@palves.net> wrote: > On 10/26/19 11:46 PM, Eric Gallager wrote: > >> Nicholas Krause was also wanting to move to C++11 recently: >> https://gcc.gnu.org/ml/gcc/2019-10/msg00110.html (this month) >> https://gcc.gnu.org/ml/gcc/2019-09/msg00228.html (last month) >> As I said in that thread, I'd want to try just toggling -Wnarrowing >> from off to on first before going full C++11. > > Why? GDB went the other way when it moved to C++11. It switched > to C++11, and for several months, used -Wno-narrowing to quiet > the thousands of warnings. > > https://gcc.gnu.org/wiki/FAQ#Wnarrowing
Sorry, lost track of this conversation in the end-of-month mail archive rollover... Uh, to be honest, I guess I don't really have a rational reason for wanting to switch to -Wnarrowing first; it's really more of an emotional/aesthetic desire I have on my part... Feel free to do the switch in the other order if that turns out to be easier. Anyways, from the rest of the discussion, it looks like this will be waiting for GCC 11 anyways, so I'm already getting my "hold off 1 release" wish, so I guess I don't really care as much about the -Wnarrowing part as much any longer... Eric > >> So, GCC 10 would be >> C++98 + -Wnarrowing, and then GCC 11 could be full C++11. Plus then >> the GCC version numbers would also line up with the version of C++ >> being used. > > Thanks, > Pedro Alves >