cp:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2005 18:07:43 +0000 (18:07 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2005 18:07:43 +0000 (18:07 +0000)
commit673b95fde554a0405ae8a1ee3c2d439110bfc904
tree942011e89513616498985f2c0177369f00dd00a6
parent49eec3d78022cc7a1707b8dbb17feb4033dbc9cd
cp:
PR c++/23797
* parser.c (cp_parser_functional_cast): Cope when TYPE is not a
TYPE_DECL.  Use dependent_type_p to check type.
* pt.c (uses_template_parms_p): Use dependent_type_p for a
TYPE_DECL.
(type_dependent_expression_p): Assert we've not been given a
TYPE_DECL.
testsuite:
PR c++/23797
* g++.dg/other/typename8.C: New.

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