[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug c++/70522] Hidden friend functions block qualified name lookup into nested unnamed namespace
From: "jason at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date: 2016-05-31 21:37:00
Message-ID: bug-70522-4-1S8PKD2kvA () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70522
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue May 31 21:36:28 2016
New Revision: 236952
URL: https://gcc.gnu.org/viewcvs?rev=236952&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/lookup/scoped10.C
branches/gcc-6-branch/gcc/testsuite/g++.dg/lookup/scoped9.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/cp-tree.h
branches/gcc-6-branch/gcc/cp/name-lookup.c
branches/gcc-6-branch/gcc/cp/name-lookup.h
branches/gcc-6-branch/gcc/cp/parser.c=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic