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.