https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89051

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
@Martin:

I've noticed that these tests has a suspicious construct:

gcc/testsuite/g++.dg/ext/flexary16.C:// { dg-options "-Wpedantic
-Wno-error=pedantic" }
gcc/testsuite/g++.dg/ext/flexary18.C:// { dg-additional-options "-Wpedantic
-Wno-error=pedantic" }
gcc/testsuite/g++.dg/ext/flexary19.C:// { dg-additional-options "-Wpedantic
-Wno-error=pedantic" }
gcc/testsuite/g++.dg/ext/flexary7.C:// { dg-options "-Wpedantic
-Wno-error=pedantic" }
gcc/testsuite/g++.dg/ext/flexary9.C:// { dg-options "-Wpedantic
-Wno-error=pedantic" }
gcc/testsuite/g++.dg/ubsan/object-size-1.C:// { dg-options "-Wpedantic
-Wno-error=pedantic -fsanitize=undefined -fpermissive" }

Note that with my patch the warning (Wpedantic) is disabled. Is it intentional
to mix the -Wpedantic and -Wno-error=pedantic?

Reply via email to