From 37bd808d63a93761431caef9358d27c17d8858d0 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Fri, 6 Feb 2004 17:27:18 +0000 Subject: [PATCH] re PR c++/14028 (Parser accepts invalid unbalanced triangular bracketing.) PR c++/14028 * g++.dg/parse/angle-bracket2.C: New test. From-SVN: r77403 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/parse/angle-bracket2.C | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/parse/angle-bracket2.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 539f5722fdc..899dc70ea35 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-02-06 Giovanni Bajo + + PR c++/14028 + * g++.dg/parse/angle-bracket2.C: New test. + 2004-02-05 Rainer Orth 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 index 00000000000..fb758e33f76 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/angle-bracket2.C @@ -0,0 +1,6 @@ +// { dg-do compile } +// Contributed by MattyT +// PR c++/14028: Parser accepts invalid unbalanced bracket. + +template struct A {}; +template class B : public A<4 {}; // { dg-error "" }