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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-10-22
            Summary|ICE in build_new_op, friend |ICE in build_new_op with
                   |operator in nested template |friend function declared
                   |specialization with         |inside a concept
                   |constrained return type     |constrainted class inside a
                   |                            |template class

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase without any includes or any magic functions:
```
template <typename> concept t = true;
template <typename> concept f = false;
template <int> struct TakeView {
  template <typename T> class Iterator {};
  template <f T> class Iterator<T> {};
  template <t T> struct Iterator<T> {
    friend  auto operator+(const Iterator &it, int) {}
  };
};
TakeView<1>::Iterator<float> tt;
```

Reply via email to