https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12333
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |msebor at gcc dot gnu.org
Known to fail| |3.3, 4.5.3, 4.8.3, 4.9.3,
| |5.3.0, 6.3.0, 7.0
--- Comment #16 from Martin Sebor <msebor at gcc dot gnu.org> ---
Today's top of trunk (GCC 7.0) still fails. Other compilers, including Clang
and Oracle Solaris Studio, accept the code.
$ cat t.C && gcc -O2 -S -Wall -Wextra t.C
struct X {
void f () {
X::~X ();
}
};
t.C: In member function ‘void X::f()’:
t.C:3:12: error: no matching function for call to ‘X::X()’
X::~X ();
^
t.C:1:8: note: candidate: X::~X()
struct X {
^
t.C:1:8: note: candidate expects 1 argument, 0 provided