On 22/07/2021 12:03, Jonathan Wakely wrote:
This should fix it:
[...]
Thanks; it indeed fixed the LibreOffice build for me.
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
> > > #
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;
>
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