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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The ICE with release checking ended in GCC 11.1.0.

GCC 5.1.0 and earlier used to reject this:
```
<source>:11:34: error: non-static data member declared 'auto'
     friend auto get<>(Reader<Key>);
                                  ^
<source>:18:30: error: non-static data member declared 'auto'
     friend auto get(Reader<K>){return 1;};
                              ^
<source>: In function 'int main()':
<source>:24:22: error: use of 'auto get(Reader<K>) [with K = int]' before
deduction of 'auto'
     get(Reader<int>{}); 
                      ^
```

Reply via email to