diff options
author | Fabien ChĂȘne <fabien@gcc.gnu.org> | 2011-12-28 20:53:14 +0100 |
---|---|---|
committer | Fabien ChĂȘne <fabien@gcc.gnu.org> | 2011-12-28 20:53:14 +0100 |
commit | 1e9f58189c7e21c595a15086d2f7357f81b6f727 (patch) | |
tree | a16ce4b7b64413e9f41169e494d59be61c2e57f7 /libgcc | |
parent | 37f3b6804eab77c25fd498d5603d2868d91ca1ac (diff) | |
download | gcc-1e9f58189c7e21c595a15086d2f7357f81b6f727.zip gcc-1e9f58189c7e21c595a15086d2f7357f81b6f727.tar.gz gcc-1e9f58189c7e21c595a15086d2f7357f81b6f727.tar.bz2 |
re PR c++/23211 (using dec in nested class doesn't import name)
gcc/testsuite/ChangeLog
2011-12-28 Fabien Chene <fabien@gcc.gnu.org>
PR c++/23211
* g++.dg/template/using18.C: New.
* g++.dg/template/using19.C: New.
* g++.dg/template/nested3.C: Remove dg-message at instantiation.
* g++.dg/template/crash13.C: Likewise.
gcc/cp/ChangeLog
2011-12-28 Fabien Chene <fabien@gcc.gnu.org>
PR c++/23211
* name-lookup.c (do_class_using_decl): Use dependent_scope_p
instead of dependent_type_p, to check that a non-dependent
nested-name-specifier of a class-scope using declaration refers to
a base, even if the current scope is dependent.
* parser.c (cp_parser_using_declaration): Set
USING_DECL_TYPENAME_P to 1 if the DECL is not null. Re-indent a
'else' close to the prior modification.
From-SVN: r182711
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions