🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gmane.comp.gcc.patches
Article #307917

Re: [PATCH] Fix PR c++/60573

#307917
From: Adam Butcher
Date: Mon, 24 Mar 2014 20:13
16 lines
630 bytes
On 2014-03-24 17:23, Jason Merrill wrote:
> On 03/18/2014 10:46 PM, Adam Butcher wrote:
>> -	  while (scope->kind == sk_class
>> -		 && !TYPE_BEING_DEFINED (scope->this_entity))
>
> Does it work to just change TYPE_BEING_DEFINED to
> currently_open_class?
>
No.  The object referred to by 'scope->this_entity' is the same for
each of the two levels, so unless there's something else I can pass to
'currently_open_class', the result will be equivalent; the issue is that
the class being referred to *is* being defined, but I need to skip over
the second class-scope for that type to arrive at the defining scope
level.

Adam

Message-ID: <835f2d568b654bebfe06c128996f587e@imap.force9.net>
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> <53306A08.6050304@redhat.com>