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.

Reply via email to