PR c++/71173 - wrong qualified lookup
authorJason Merrill <jason@redhat.com>
Wed, 25 May 2016 18:29:14 +0000 (14:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 May 2016 18:29:14 +0000 (14:29 -0400)
commit1b22fc54fd4fe739ba2d223fc8f3e3b036beddf1
tree0cd1bfde15477ae2028496320a01fa745b2ca052
parent04080f22d657e9762500f5a7f6c9843ebfc46517
PR c++/71173 - wrong qualified lookup

PR c++/70522
* cp-tree.h (enum tag_types): Add scope_type.
* parser.c (cp_parser_class_name): Use scope_type.
(prefer_type_arg): Handle scope_type.
(cp_parser_lookup_name): Use prefer_type_arg.
* name-lookup.c (lookup_qualified_name): Change bool is_type_p to
int prefer_type, use lookup_flags.
* name-lookup.h: Adjust.

From-SVN: r236736
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/testsuite/g++.dg/lookup/scoped10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/scoped9.C [new file with mode: 0644]