re PR c++/64127 (ICE on invalid: tree check: expected identifier_node, have template_...
authorKai Tietz <ktietz@redhat.com>
Wed, 10 Dec 2014 11:29:22 +0000 (12:29 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Wed, 10 Dec 2014 11:29:22 +0000 (12:29 +0100)
commite6f2df09a50cbc7e47260c616c0047aac472b342
treedbe73bd2be6724a5e251813c2c299fec90d6ceef
parent6cc92f7d80b696290da0df8625c49c60353debf9
re PR c++/64127 (ICE on invalid: tree check: expected identifier_node, have template_id_expr in cp_parser_diagnose_invalid_type_name, at cp/parser.c:2980)

PR c++/64127
* parser.c (cp_parser_diagnose_invalid_type_name): Check id
for being an identifier before accessing it.

From-SVN: r218573
gcc/cp/ChangeLog
gcc/cp/parser.c