aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2021-01-14 22:14:38 -0500
committerMarek Polacek <polacek@redhat.com>2021-01-19 17:13:00 -0500
commitd89b00c095e99cd5cb6d3e05f30d3a61fa592000 (patch)
tree88c70d0ec39f9ee8978aea8ff133a4deed603301 /gcc/go
parent9693e255ee2536c6823640eba5d0163c2b401161 (diff)
downloadgcc-d89b00c095e99cd5cb6d3e05f30d3a61fa592000.zip
gcc-d89b00c095e99cd5cb6d3e05f30d3a61fa592000.tar.gz
gcc-d89b00c095e99cd5cb6d3e05f30d3a61fa592000.tar.bz2
c++: ICE with USING_DECL redeclaration [PR98687]
My recent patch that introduced push_using_decl_bindings didn't handle USING_DECL redeclaration, therefore things broke. This patch amends that by breaking out a part of finish_nonmember_using_decl out to a separate function, push_using_decl_bindings, and calling it. It needs an overload, because name_lookup is only available inside of name-lookup.c. gcc/cp/ChangeLog: PR c++/98687 * name-lookup.c (push_using_decl_bindings): New, broken out of... (finish_nonmember_using_decl): ...here. * name-lookup.h (push_using_decl_bindings): Update declaration. * pt.c (tsubst_expr): Update the call to push_using_decl_bindings. gcc/testsuite/ChangeLog: PR c++/98687 * g++.dg/lookup/using64.C: New test. * g++.dg/lookup/using65.C: New test.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions