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

            Bug ID: 110397
           Summary: types may not be defined in parameter types leads to
                    ICE
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stevenxia990430 at gmail dot com
  Target Milestone: ---

The following invalid program reports an internal compiler error: Segmentation
fault.

To quickly reproduce: https://gcc.godbolt.org/z/dE96K7cGc
```
#include <iostream>

int main(){
        auto sum = ([](struct A {int b; int c;}a,...){
        });
    return 0;
}
```

tested on gcc-trunk

Reply via email to