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

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nshead at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Seems fixed in GCC 14:

pr81247-a.C:5:1: error: expected ‘{’ before ‘template’
    5 | template < typename T > class A
      | ^~~~~~~~
pr81247-a.C: In instantiation of ‘class A<int>’:
pr81247-a.C:12:13:   required from here
   12 |   A < int > a1; //  { dg-message "required from here" }
      |             ^~
pr81247-a.C:6:1: error: ‘template<int <anonymous> > class N’ redeclared as
different kind of entity
    6 | { // { dg-error "redeclared as different" }
      | ^
pr81247-a.C:3:11: note: previous declaration ‘namespace N { }’
    3 | namespace N  // { dg-message "previous declaration" }
      |           ^

Reply via email to