[Bug target/124378] 23_containers/vector/cons/destructible(_debug)?_neg.cc -std=gnu++20 (test for errors, line (36|42|182))
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 5 16:48:04 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124378
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Torbjorn SVENSSON from comment #0)
> Note that the tests above passes for x86_64-pc-linux-gnu.
And for aarch64-unknown-linux-gnu and other targets that I've been routinely
testing with -std=gnu++20 for years.
> It appears that the line marked for the error has shifter to be the end of the scope (or off by one?).
Yeah, that's very strange:
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc:37:
required from here
It's even stranger that this only happens for gnu++20 and not gnu++17
More information about the Gcc-bugs
mailing list