c++: Over-zealous assert [PR 99239]
authorNathan Sidwell <nathan@acm.org>
Tue, 23 Mar 2021 12:18:04 +0000 (05:18 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 23 Mar 2021 12:21:13 +0000 (05:21 -0700)
commit6acd6692f1ac3c2ece3da36178df73e3b12c4f65
treeb1add34d7e633b4b44ce6913712a84d5e2290217
parentffa6a7fba1f87b6b47763882be411a339061492d
c++: Over-zealous assert [PR 99239]

This was simply an overzealous assert.  Possibly correct thinking at
the time that code was written, but not true now.  Of course we can
have imported artificial decls.

PR c++/99239
gcc/cp/
* decl.c (duplicate_decls): Remove assert about maybe-imported
artificial decls.
gcc/testsuite/
* g++.dg/modules/pr99239_a.H: New.
* g++.dg/modules/pr99239_b.H: New.
gcc/cp/decl.c
gcc/testsuite/g++.dg/modules/pr99239_a.H [new file with mode: 0644]
gcc/testsuite/g++.dg/modules/pr99239_b.H [new file with mode: 0644]