------- Comment #16 from reichelt at gcc dot gnu dot org 2005-11-16 13:03 ------- Subject: Bug 23797
Author: reichelt Date: Wed Nov 16 13:03:13 2005 New Revision: 107081 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107081 Log: Backport from mainline: 2005-10-12 Nathan Sidwell <[EMAIL PROTECTED]> 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. * g++.dg/parse/typename8.C: New test. * g++.dg/parse/typename9.C: Likewise. Added: branches/gcc-3_4-branch/gcc/testsuite/g++.dg/parse/typename8.C branches/gcc-3_4-branch/gcc/testsuite/g++.dg/parse/typename9.C Modified: branches/gcc-3_4-branch/gcc/cp/ChangeLog branches/gcc-3_4-branch/gcc/cp/parser.c branches/gcc-3_4-branch/gcc/cp/pt.c branches/gcc-3_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23797 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]