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

Nick Sumner nick.sumner at gmail.com
Mon Oct 17 23:22:21 PDT 2011


Sorry, looks like this was already fixed in a better way by r131062.


On 10/18/11, Douglas Gregor <dgregor at apple.com> wrote:
>
> 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
>


-- 
Nick Sumner



More information about the llvm-commits mailing list