-
- Downloads
PR c++/18093
* search.c (current_scope): Return the innermost non-block scope, not the innermost non-block, non-namespace scope. (at_namespace_scope_p): Adjust accordingly. (dfs_accessible_post): Do not pass namespaces to is_friend. (dfs_walk_once_accessible_r): Likewise. * decl.c (grokvardecl): Adjust call to current_scope. (build_enumerator): Likewise. * parser.c (cp_parser_using_declaration): Likewise. (cp_parser_direct_declarator): Use at_namespace_scope_p instead of current_scope. (cp_parser_class_head): Adjust call to current_scope. * name-lookup.c (do_namespace_alias): Set the DECL_CONTEXT for the alias. PR c++/18020 * pt.c (tusbst_copy_and_build): Resolve enumeration constants to their underlying values. PR c++/18161 * typeck.c (build_binary_op): Honor build_type, even when in a template. PR c++/18093 * g++.dg/lookup/ns2.C: New test. PR c++/18020 * g++.dg/template/enum4.C: New test. PR c++/18161 * g++.dg/template/expr1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89627 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/cp/ChangeLog 25 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/decl.c 1 addition, 7 deletionsgcc/cp/decl.c
- gcc/cp/name-lookup.c 1 addition, 0 deletionsgcc/cp/name-lookup.c
- gcc/cp/parser.c 3 additions, 7 deletionsgcc/cp/parser.c
- gcc/cp/pt.c 8 additions, 0 deletionsgcc/cp/pt.c
- gcc/cp/search.c 45 additions, 32 deletionsgcc/cp/search.c
- gcc/cp/typeck.c 3 additions, 1 deletiongcc/cp/typeck.c
- gcc/testsuite/ChangeLog 11 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/lookup/ns2.C 17 additions, 0 deletionsgcc/testsuite/g++.dg/lookup/ns2.C
- gcc/testsuite/g++.dg/template/enum4.C 9 additions, 0 deletionsgcc/testsuite/g++.dg/template/enum4.C
- gcc/testsuite/g++.dg/template/expr1.C 8 additions, 0 deletionsgcc/testsuite/g++.dg/template/expr1.C
Loading
Please register or sign in to comment