[Bug other/111264] [14 regression] gcc.dg/plugin/analyzer_cpython_plugin.c breaks after r14-3580-g597b9ec69bca8a
hp at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 1 02:09:30 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111264
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hp at gcc dot gnu.org
--- Comment #1 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
Also seen for cris-elf and m68k-linux
(https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/794806.html).
Some experimentation says that this is a mismatch between the default C++
version for the host/installed gcc (for me, C++11, I think) and the target
(C++17, right?). If you add "-std=c++17" to the invocation line in gcc.log,
compilation succeeds. Or, change the form of the newly introduced declarations
from
auto foobar = foo<bar>();
to
foo<bar> foobar;
Not sure why the former is used, it seems negate the benefits of auto and just
be more typing. Beware: since I know Very Little C++ of the last decades, I
could be completely wrong.
More information about the Gcc-bugs
mailing list