diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2011-06-17 16:07:26 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-06-17 16:07:26 -0400 |
commit | 2b8dfc0700967a393af044b0ca41a2b8f4f615e3 (patch) | |
tree | 2e7d08db03a4c30e348c8b74a135a6c62383e349 /gcc/cp | |
parent | f05f61fd73568da443c330faaadfeecba45158d7 (diff) | |
download | gcc-2b8dfc0700967a393af044b0ca41a2b8f4f615e3.zip gcc-2b8dfc0700967a393af044b0ca41a2b8f4f615e3.tar.gz gcc-2b8dfc0700967a393af044b0ca41a2b8f4f615e3.tar.bz2 |
pushdecl_with_scope comment
From-SVN: r175154
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/name-lookup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 7f0f615..16b991d 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -2066,7 +2066,12 @@ push_using_decl (tree scope, tree name) } /* Same as pushdecl, but define X in binding-level LEVEL. We rely on the - caller to set DECL_CONTEXT properly. */ + caller to set DECL_CONTEXT properly. + + Note that this must only be used when X will be the new innermost + binding for its name, as we tack it onto the front of IDENTIFIER_BINDING + without checking to see if the current IDENTIFIER_BINDING comes from a + closer binding level than LEVEL. */ static tree pushdecl_with_scope_1 (tree x, cxx_scope *level, bool is_friend) |