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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://github.com/mariusba
                   |                            |ncila/croncpp/issues/1

--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> ---
The obvious workaround is to do this:
```
template <class=void> class ls ls1();
class ls {
        template <class> friend class ls ls1();
};
template <class> class ls ls1(){}
```

Looks like this was caused by r0-79944-g9b7dd5e868e5c3 (which was there to fix
https://cplusplus.github.io/CWG/issues/226.html); I am not sure this is a
regression for a release though.

Reply via email to