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
	* g++.dg/cpp/pr64127.C: New file.

From-SVN: r218574
This commit is contained in:
Kai Tietz 2014-12-10 12:32:00 +01:00 committed by Kai Tietz
parent e6f2df09a5
commit 73d1736364
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2014-12-10 Kai Tietz <ktietz@redhat.com>
PR c++/64127
* g++.dg/cpp/pr64127.C: New file.
PR c++/64100
* g++.dg/template/pr64100.C: New file.

View File

@ -0,0 +1,9 @@
/* { dg-do compile { target c++98_only } } */
template <0> int __copy_streambufs_eof; // { dg-error "" }
// { dg-error "numeric constant" "" { target *-*-* } 3 }
// { dg-warning "variable templates" "" { target *-*-* } 3 }
__copy_streambufs_eof < // { dg-error "" }
// { dg-error "parse error" "" { target *-*-* } 6 }
// { dg-error "not name a type" "" { target *-*-* } 6 }