re PR c++/81124 (internal compiler error: in operator*, at cp/cp-tree.h:726)
authorNathan Sidwell <nathan@acm.org>
Mon, 19 Jun 2017 19:11:31 +0000 (19:11 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 19 Jun 2017 19:11:31 +0000 (19:11 +0000)
commit5ec046c03624e39858314bd35eb0c06f8e63bd28
tree00c40f39d2e310494370a6fc0d4ec1fa9e4ddfee
parentc72e002cc34657b86bf99ca68f3ba0fdbfc32df6
re PR c++/81124 (internal compiler error: in operator*, at cp/cp-tree.h:726)

PR c++/81124
PR c++/79766
* name-lookup.c (set_decl_namespace): Don't follow using
directives and ignore using decls.  Only check overly-explicit
scope after discovering decl.

* g++.dg/lookup/pr79766.C: New.
* g++.dg/lookup/pr81124.C: New.
* g++.dg/template/explicit6.C: Adjust.
* g++.old-deja/g++.other/decl5.C: Adjust.

From-SVN: r249385
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr79766.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/pr81124.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/explicit6.C
gcc/testsuite/g++.old-deja/g++.other/decl5.C