re PR c++/14028 (Parser accepts invalid unbalanced triangular bracketing.)

PR c++/14028
	* g++.dg/parse/angle-bracket2.C: New test.

From-SVN: r77403
This commit is contained in:
Giovanni Bajo 2004-02-06 17:27:18 +00:00
parent 6c0cc713d2
commit 37bd808d63
2 changed files with 11 additions and 0 deletions

View 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

View File

@ -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 "" }