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

Reply via email to