]>
Commit | Line | Data |
---|---|---|
32314c38 PC |
1 | // PR c++/58582 |
2 | // { dg-do compile { target c++11 } } | |
3 | ||
4 | struct A | |
5 | { | |
6 | template<int> void foo() = delete; | |
7 | }; | |
8 | ||
9 | template<int> void A::foo() { int i; } // { dg-error "redefinition" } | |
10 | ||
11 | template void A::foo<0>(); |