diff options
author | Kai Tietz <ktietz@redhat.com> | 2014-12-10 12:32:00 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2014-12-10 12:32:00 +0100 |
commit | 73d1736364dbaa29eba1dce8b9ab6844915529ac (patch) | |
tree | 497cfbc4f89bfa1d70da124b11aa6cf9ac3750dd | |
parent | e6f2df09a50cbc7e47260c616c0047aac472b342 (diff) | |
download | gcc-73d1736364dbaa29eba1dce8b9ab6844915529ac.zip gcc-73d1736364dbaa29eba1dce8b9ab6844915529ac.tar.gz gcc-73d1736364dbaa29eba1dce8b9ab6844915529ac.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp/pr64127.C | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 615bfa7..3bbb497 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/g++.dg/cpp/pr64127.C b/gcc/testsuite/g++.dg/cpp/pr64127.C new file mode 100644 index 0000000..07aa028 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp/pr64127.C @@ -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 } + |