https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114271

            Bug ID: 114271
           Summary: [ICE] on invalid
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egor.pugin at gmail dot com
  Target Milestone: ---

int f=[](class{


<source>:1:15: error: types may not be defined in parameter types
    1 | int f=[](class{
      |               ^
<source>:1:16: error: expected '}' at end of input
    1 | int f=[](class{
      |               ~^
<source>:1:16: error: expected ',' or '...' at end of input
<source>:1:16: error: expected ')' at end of input
    1 | int f=[](class{
      |         ~      ^
      |                )
<source>: In lambda function:
<source>:1:16: error: expected '{' at end of input
g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report, with preprocessed source.
See <https://gcc.gnu.org/bugs/> for instructions.


Seems to ICE on every version.

Reply via email to