]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Note duplicates in symbol table [PR 99283]
authorNathan Sidwell <nathan@acm.org>
Tue, 23 Mar 2021 19:23:30 +0000 (12:23 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 23 Mar 2021 19:29:14 +0000 (12:29 -0700)
commitbd71889b9017751e1a06970d20b28b9fe9479bdc
treeb5e5818717b8f8f1542e8489ce7e4e6b3bab4e1b
parentb61461ac7f9bdd0e98145be79423d19b933afaa0
c++: Note duplicates in symbol table [PR 99283]

I ran into this reducing 99283, we were failing to mark binding
vectors when the current TU declares a duplicate decl (as opposed to
an import introduces a duplicate).

PR c++/99283
gcc/cp/
* name-lookup.c (check_module_override): Set global or partition
DUP on the binding vector.
gcc/testsuite/
* g++.dg/modules/pr99283-1_a.H: New.
* g++.dg/modules/pr99283-1_b.H: New.
gcc/cp/name-lookup.c
gcc/testsuite/g++.dg/modules/pr99283-1_a.H [new file with mode: 0644]
gcc/testsuite/g++.dg/modules/pr99283-1_b.H [new file with mode: 0644]