aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-10-20 12:17:21 -0700
committerNathan Sidwell <nathan@acm.org>2020-10-20 12:20:10 -0700
commit15b8e2af42168a41636186c53d1e833302195601 (patch)
treeafbc7517b3692877b3cda065eb72f1be29f45702 /libgo
parentd962ef77dadea87b2bf30487bddda00c350bf0ba (diff)
downloadgcc-15b8e2af42168a41636186c53d1e833302195601.zip
gcc-15b8e2af42168a41636186c53d1e833302195601.tar.gz
gcc-15b8e2af42168a41636186c53d1e833302195601.tar.bz2
c++: block-scope extern decl with default args
In adding the DECL_LOCAL_DECL handling, I'd forgotten that the parm-decls also need cloning -- and resetting of their DECL_CONTEXT. Also, any default args need droping when adding an alias, as those are not propagated. The std's not totally clear on this latter point when there's no exising namespace decl, but that seems like the right thing and is what clang does. gcc/cp/ * name-lookup.c (push_local_extern_decl_alias): Reconstextualize alias' parm decls. Drop any default args. gcc/testsuite/ * g++.dg/lookup/local-extern.C: New.
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions