https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12228
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-12-18 20:16:40 |2017-1-11
Known to fail| |3.3, 4.5.3, 4.8.3, 4.9.3,
| |5.3.0, 6.3.0, 7.0
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Today's top of trunk (GCC 7.0) fails with the errors below. Clang also fails
to compile it but EDG eccp, IBM XLC++, and Oracle Studio 12.4 all accept the
code.
t.C: In function ‘void foo(N::B<T>*)’:
t.C:17:20: error: expected ‘;’ before ‘::’ token
/* 17 */ p->NB::~NB ();
^~
t.C: In function ‘void foo(typename N::B<T>::BT*)’:
t.C:24:20: error: expected ‘;’ before ‘::’ token
/* 24 */ p->BT::~BT ();
^~
t.C: In function ‘void foo(N::C<T>*)’:
t.C:31:20: error: expected ‘;’ before ‘::’ token
/* 31 */ p->NC::~NC ();
^~
t.C: In function ‘void foo(typename N::C<T>::CA*)’:
t.C:38:20: error: expected ‘;’ before ‘::’ token
/* 38 */ p->CA::~CA ();
^~