[Bug c++/104765] Expression statement with a return in a lambda-parameter-default causes segfault when called in a different function
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 2 21:07:07 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104765
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
CC| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2022-03-02
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, even r152438 ICEs.
I think you're correct that we should just issue an error for this.
More information about the Gcc-bugs
mailing list