[PATCH] Fix PR c++/60390
Jason Merrill
jason@redhat.com
Mon Mar 17 15:00:00 GMT 2014
On 03/16/2014 04:44 PM, Adam Butcher wrote:
> + if (parser->num_classes_being_defined == 0)
> + while (scope->kind == sk_class)
> + {
> + parent_scope = scope;
> + scope = scope->level_chain;
> + }
> + else
> + while (scope->kind == sk_class
> + && !TYPE_BEING_DEFINED (scope->this_entity))
> + {
> + parent_scope = scope;
> + scope = scope->level_chain;
> + }
The special case for 0 seems like an unnecessary optimization. OK
without it.
Jason
More information about the Gcc-patches
mailing list