[llvm-commits] Patch to support projects using C++0x mode

Douglas Gregor dgregor at apple.com
Mon Oct 17 21:33:28 PDT 2011


On Oct 17, 2011, at 12:53 PM, Nick Sumner wrote:

> C++0x mode in GCC requires that destructors be accessible by children
> in the class hierarchy. This is true even if the destructors in both a
> parent and its child are deleted.

This sounds like a GCC bug. Which version of GCC is this? Have you reported it as a bug there?

> The attached patch fixes deleted destructor visibility for Operators
> to allow GCC to build LLVM projects that use C++0x mode. It simply
> makes deleted parent destructors protected instead of private.

Please add comments indicating that this is a workaround for compiler bugs in GCC, rather than some deliberate attempt to make the destructors accessible to subclasses.

	- Doug



More information about the llvm-commits mailing list