Re: More aggressive GCC 12 -Wmaybe-uninitialized when using

2021-07-23 Thread Stephan Bergmann via Gcc
On 22/07/2021 12:03, Jonathan Wakely wrote: This should fix it: [...] Thanks; it indeed fixed the LibreOffice build for me.

Re: More aggressive GCC 12 -Wmaybe-uninitialized when using

2021-07-22 Thread Jonathan Wakely via Gcc
On Thu, 22 Jul 2021 at 11:03, Jonathan Wakely wrote: > > On Thu, 22 Jul 2021 at 10:23, Stephan Bergmann via Libstdc++ > wrote: > > > > Compared to GCC 11 (at least gcc-c++-11.1.1-3.fc34.x86_64), recent GCC > > 12 trunk emits two "unhelpful" -Wmaybe-uninitialized for > > > > > $ cat test.cc > > > #

Re: More aggressive GCC 12 -Wmaybe-uninitialized when using

2021-07-22 Thread Jonathan Wakely via Gcc
On Thu, 22 Jul 2021 at 10:23, Stephan Bergmann via Libstdc++ wrote: > > Compared to GCC 11 (at least gcc-c++-11.1.1-3.fc34.x86_64), recent GCC > 12 trunk emits two "unhelpful" -Wmaybe-uninitialized for > > > $ cat test.cc > > #include > > using fn = std::function; > > fn f(fn x) { > > fn a; >

More aggressive GCC 12 -Wmaybe-uninitialized when using

2021-07-22 Thread Stephan Bergmann via Gcc
Compared to GCC 11 (at least gcc-c++-11.1.1-3.fc34.x86_64), recent GCC 12 trunk emits two "unhelpful" -Wmaybe-uninitialized for $ cat test.cc #include using fn = std::function; fn f(fn x) { fn a; a = x; return x; } $ ~/gcc/trunk/inst/bin/g++ -c -Wmaybe-uninitialized -O2 test.cc