On 5/20/19 10:55 AM, Marek Polacek wrote:
On Mon, May 20, 2019 at 09:48:57AM -0400, Nathan Sidwell wrote:
+ if (attribs != error_mark_node)
+for (tree a = attribs; a; a = TREE_CHAIN (a))
+ {
+ tree name = get_attribute_name (a);
+ if (current_binding_level->kind == sk_names
On Mon, May 20, 2019 at 09:48:57AM -0400, Nathan Sidwell wrote:
> + if (attribs != error_mark_node)
> +for (tree a = attribs; a; a = TREE_CHAIN (a))
> + {
> + tree name = get_attribute_name (a);
> + if (current_binding_level->kind == sk_namespace
> + && is_attribute_p ("st
This patch commonizes local- and namespace-scope using directive
finishing. While a small cleanup, it matches a more significant
using-decl patch I have next.
applying to trunk.
nathan
--
Nathan Sidwell
2019-05-20 Nathan Sidwell
gcc/cp/
* name-lookup.c (finish_namespace_using_directive)