On 6/4/19 11:20 AM, Marek Polacek wrote:
On Tue, Jun 04, 2019 at 11:13:14AM -0400, Nathan Sidwell wrote:
[...]
+ /* Now check if we can look in namespace scope. */
+ for (; b->kind != sk_namespace; b = b->level_chain)
+ if (!(b->kind == sk_cleanup
+ || b->kind == sk_template_parms
+ || b->kind == sk_function_parms
+ || (b->kind == sk_class
+ && scope == ts_within_enclosing_non_class)))
+ return NULL_TREE;
Looks like we could break that out into a new predicate function?
Something like allowed_scope_p?
Yeah, I thought about that, but didn't think it worth the effort.
nathan
--
Nathan Sidwell