| 1 |
// PR c++/34271 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<int> struct A { // { dg-message "defined here" } |
| 5 |
static int i; // { dg-message "candidate" } |
| 6 |
}; |
| 7 |
|
| 8 |
template<int N> int A<N>::i(decltype (A::i)); // { dg-error "no declaration" } |