OSDN Git Service

gcc/testsuite/ChangeLog
authorfabien <fabien@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Dec 2011 19:53:14 +0000 (19:53 +0000)
committerfabien <fabien@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Dec 2011 19:53:14 +0000 (19:53 +0000)
commit9e92dfe55ae0ada40b85090045ee0fe70c6f1d6c
treea16ce4b7b64413e9f41169e494d59be61c2e57f7
parentd5932b6529f14acb1e1cefd396a00d8f4e753199
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182711 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash13.C
gcc/testsuite/g++.dg/template/nested3.C
gcc/testsuite/g++.dg/template/using18.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/using19.C [new file with mode: 0644]