This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
pure virtual destructor declared inline
- From: Richard Smith <rgs26 at cam dot ac dot uk>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Nov 2002 19:46:59 +0000
- Subject: pure virtual destructor declared inline
Hi,
g++ 2.95.4 chokes on the following:
class foo
{
virtual ~foo() = 0 {}
};
although it's valid C++, as far as I can tell. This is known to work on MSVC++
version 6's compiler.
I'm running a stock install from Debian's unstable (sid) distro.
The error given is:
test.cpp:3: parse error before `{'
Is this a compiler bug?
Thanks,
Richard.