c++: Relax new assert [PR 97905]
authorNathan Sidwell <nathan@acm.org>
Thu, 19 Nov 2020 16:00:49 +0000 (08:00 -0800)
committerNathan Sidwell <nathan@acm.org>
Thu, 19 Nov 2020 17:56:30 +0000 (09:56 -0800)
commit255483e5b70beade63efdf1f3efa6b814831da08
treef9abf5a9329e47af9c023413e96ab45badb49c52
parent5ace1776b88d4b0fc371414d0b3983015e22fead
c++: Relax new assert [PR 97905]

It turns out there are legitimate cases for the new decl to not have
lang-specific.

PR c++/97905
gcc/cp/
* decl.c (duplicate_decls): Relax new assert.
gcc/testsuite/
* g++.dg/lookup/pr97905.C: New.
gcc/cp/decl.c
gcc/testsuite/g++.dg/lookup/pr97905.C [new file with mode: 0644]