public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96396] New: initializer_list in `-fconcepts -std=c++11` reports internal compiler error
@ 2020-07-31  2:32 gcc at mailinator dot com
  2020-08-03 20:02 ` [Bug c++/96396] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gcc at mailinator dot com @ 2020-07-31  2:32 UTC (permalink / raw)
  To: gcc-bugs

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.
```

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-26  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31  2:32 [Bug c++/96396] New: initializer_list in `-fconcepts -std=c++11` reports internal compiler error gcc at mailinator dot com
2020-08-03 20:02 ` [Bug c++/96396] " mpolacek at gcc dot gnu.org
2021-07-22 22:38 ` pinskia at gcc dot gnu.org
2024-03-26  7:44 ` pinskia at gcc dot gnu.org
2024-03-26  8:15 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).