[cfe-dev] error: exception specification is not available until end of class definition
Han Wang via cfe-dev
cfe-dev at lists.llvm.org
Mon Aug 17 09:50:39 PDT 2015
Hi,
Let's say we have a simple test.cpp file.
class A {
public:
virtual ~A() {};
};
class B: public A {
public:
struct C {
~C() throw() {};
};
C c;
//~B();
};
I got an error
test.cpp:11:4: error: exception specification is not available until end of
class definition
C c;
^
1 error generated.
when trying to compile it with clang++ -c test.cpp. It works fine with
xcode clang but the error occurs when using clang from trunk.
Thanks.
Best regards,
Han
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150817/6bd6c59b/attachment.html>
More information about the cfe-dev
mailing list