[Bug c++/99874] [11 Regression] ICE Segmentation fault when declared variable template of template lambda
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Apr 3 17:15:08 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99874
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #1)
> Confirmed. G++10:
>
> 99874.C:2:45: error: expected ‘(’ before ‘{’ token
> 2 | auto l = []<int x> requires requires { x; } {};
> | ^
> | (
>
> ICE started with r11-3261. I suppose it's a P1 then?
Probably -- if we add an empty parameter list to the lambda then G++10 accepts.
Looking into it.
More information about the Gcc-bugs
mailing list