re PR c++/14028 (Parser accepts invalid unbalanced triangular bracketing.)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Fri, 6 Feb 2004 17:27:18 +0000 (17:27 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Fri, 6 Feb 2004 17:27:18 +0000 (17:27 +0000)
PR c++/14028
* g++.dg/parse/angle-bracket2.C: New test.

From-SVN: r77403

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/angle-bracket2.C [new file with mode: 0644]

index 539f5722fdc6e3f713efa331cd68865c6fc08788..899dc70ea3567386202775eb32ca4b61cb5f2993 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-06  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
+
+       PR c++/14028
+       * g++.dg/parse/angle-bracket2.C: New test.
+
 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        PR middle-end/13750
diff --git a/gcc/testsuite/g++.dg/parse/angle-bracket2.C b/gcc/testsuite/g++.dg/parse/angle-bracket2.C
new file mode 100644 (file)
index 0000000..fb758e3
--- /dev/null
@@ -0,0 +1,6 @@
+// { dg-do compile }
+// Contributed by MattyT <mattyt-bugzilla at tpg dot com dot au>
+// PR c++/14028: Parser accepts invalid unbalanced bracket.
+
+template <int> struct A {};
+template <typename TP> class B : public A<4  {};    // { dg-error "" }