| 1 |
// { dg-do compile } |
| 2 |
|
| 3 |
// Origin: [email protected] |
| 4 |
|
| 5 |
// PR c++/14428: Redeclaration of class template with wrong |
| 6 |
// non-type template parameter. |
| 7 |
|
| 8 |
template <int i> struct X; // { dg-error "template parameter" } |
| 9 |
template <int* p> struct X; // { dg-message "note: redeclared here" } |