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

            Bug ID: 96396
           Summary: initializer_list in `-fconcepts -std=c++11` reports
                    internal compiler error
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc at mailinator dot com
  Target Milestone: ---

Program:

```
#include<initializer_list>

int main(){
        for(auto it:{1, 2}){
        }
}
```

Compiler flag: `-fconcepts -std=c++11`

Godbolt link: https://cpp.godbolt.org/z/K7e5rh (version: x84-64 gcc 10.2 or
trunk)

Compiler output:

```
<source>: In function 'int main()':

<source>:4:26: internal compiler error: in type_unification_real, at
cp/pt.c:21786

    4 |         for(auto it:{1, 2}){

      |                          ^

Please submit a full bug report,

with preprocessed source if appropriate.

See <https://gcc.gnu.org/bugs/> for instructions.
```

Reply via email to