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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-05-31
           Keywords|                            |accepts-invalid,
                   |                            |ice-on-invalid-code

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
template <typename a>
inline constexpr bool t = false;

int main()
{
    return t<auto(&)(const int*) -> auto&>;
}
```
If we `s/return//` we get the accept invalid too.

Reply via email to