re PR c++/64127 (ICE on invalid: tree check: expected identifier_node, have template_...
authorKai Tietz <ktietz@redhat.com>
Wed, 10 Dec 2014 11:32:00 +0000 (12:32 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Wed, 10 Dec 2014 11:32:00 +0000 (12:32 +0100)
PR c++/64127
* g++.dg/cpp/pr64127.C: New file.

From-SVN: r218574

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp/pr64127.C [new file with mode: 0644]

index 615bfa7e3477e3b08a9736caea3deae1fd5d24f1..3bbb497009cf8e25dcc82bf04db103411e3887eb 100644 (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.
 
diff --git a/gcc/testsuite/g++.dg/cpp/pr64127.C b/gcc/testsuite/g++.dg/cpp/pr64127.C
new file mode 100644 (file)
index 0000000..07aa028
--- /dev/null
@@ -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 }
+