This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]