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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Dhruv Chawla from comment #2)
I'm still seeing an error with older GCC:
123189.C:3:42: error: field ‘c’ has incomplete type
‘{anonymous}::{anonymous}::b<a>’ [-Wtemplate-body]
    3 | template <typename a> class b { friend b c<>() noexcept(a ::d); };
      |                                          ^
123189.C:3:29: note: definition of ‘class {anonymous}::{anonymous}::b<a>’ is
not complete until the closing brace
    3 | template <typename a> class b { friend b c<>() noexcept(a ::d); };
      |                             ^
123189.C:3:42: error: expected ‘;’ at end of member declaration
[-Wtemplate-body]
    3 | template <typename a> class b { friend b c<>() noexcept(a ::d); };
      |                                          ^
      |                                           ;
123189.C:3:43: error: expected unqualified-id before ‘<’ token
[-Wtemplate-body]
    3 | template <typename a> class b { friend b c<>() noexcept(a ::d); };
      |                                           ^

Reply via email to