| 1 |
// { dg-do compile } |
| 2 |
// Contributed by MattyT <mattyt-bugzilla at tpg dot com dot au> |
| 3 |
// PR c++/14028: Parser accepts invalid unbalanced bracket. |
| 4 |
|
| 5 |
template <int> struct A {}; |
| 6 |
template <typename TP> class B : public A<4 {}; // { dg-error "" } |