[Bug c++/11551] New: [3.4 regression] g++ accepts specialization typedef as destructor name
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jul 16 22:18:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11551
Summary: [3.4 regression] g++ accepts specialization typedef as
destructor name
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jason at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
The new parser incorrectly accepts this testcase.
template <class T> struct A;
typedef A<int> Ai;
template<> struct A<int> {
~Ai(); // error: typedef-name used to name a destructor
};
More information about the Gcc-bugs
mailing list