]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/23797 (ICE on typename outside template)
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 12 Oct 2005 18:07:43 +0000 (18:07 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 12 Oct 2005 18:07:43 +0000 (18:07 +0000)
commit3ce5fa4fa606357251b653f66fbef96fdfcbea2f
tree942011e89513616498985f2c0177369f00dd00a6
parent51b15ede491940fcc66789e704474a67387ae705
re PR c++/23797 (ICE on typename outside template)

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.

From-SVN: r105312
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]