Article View: gmane.comp.gcc.patches
Article #307974Re: [PATCH] Fix PR c++/60573
From: Jason Merrill
Date: Tue, 25 Mar 2014 11:48
Date: Tue, 25 Mar 2014 11:48
13 lines
502 bytes
502 bytes
On 03/18/2014 10:46 PM, Adam Butcher wrote: > + if (TYPE_BEING_DEFINED (scope->this_entity)) > + if (scope->level_chain == 0 > + || scope->this_entity != scope->level_chain->this_entity) > + break; I don't think this is an adequate test; if you have another class wrapping B, you'll have two levels of context pushed for the declarator, so the this_entities will compare unequal. I think we need some way to designate a scope that actually corresponds to a class-specifier. Jason
Message-ID:
<5331A533.8020806@redhat.com>
Path:
gmane.pugleaf.net!archive.newsdeef.eu!g.newsdeef.eu!gmane.newsdeef.eu!news.gmane.org!not-for-mail
References:
<1395197167-25367-1-git-send-email-adam@jessamine.co.uk>