c++: Fix ICE after ambiguous inline namespace reopen [PR94257]
authorNathan Sidwell <nathan@acm.org>
Fri, 27 Mar 2020 14:54:33 +0000 (07:54 -0700)
committerNathan Sidwell <nathan@acm.org>
Fri, 27 Mar 2020 14:54:33 +0000 (07:54 -0700)
commit9dba60130dc3ebf7cce8716a36672281688693f7
tree038d92e6564dfe1bfaafff5dcb2ccf62171e78e6
parent6969ac301f2229366a812942a906257e5c060762
c++: Fix ICE after ambiguous inline namespace reopen [PR94257]

Following DR2061, 'namespace F', looks for 'F's inside inline namespaces.
That can result in ambiguous lookups that we failed to diagnose early enough,
leading us to push a new namespace and ICE later.  Diagnose the ambiguity
earlier, and then pick one.

PR c++/94257
* name-lookup.c (push_namespace): Triage ambiguous lookups that
contain namespaces.
gcc/cp/ChangeLog
gcc/cp/name-lookup.c