OSDN Git Service

PR c++/11987
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Nov 2009 14:40:13 +0000 (14:40 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Nov 2009 14:40:13 +0000 (14:40 +0000)
commit2e6a4932c6fc77dc57413586a49ef3584cde4967
tree90d7953a7498a3ee4c4554636ecc5116b2ea716d
parentbf19734bd41b8f565e8d268ae53cb4fa408492c6
PR c++/11987
* parser.c (cp_parser_direct_declarator): Give helpful error about
trying to define member of a dependent typedef.
* pt.c (resolve_typename_type): Don't resolve a typedef typename.
* tree.c (typedef_variant_p): New.
* cp-tree.h: Declare it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154149 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/typename11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash48.C