]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/deleted4.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / deleted4.C
CommitLineData
32314c38
PC
1// PR c++/58582
2// { dg-do compile { target c++11 } }
3
4struct A
5{
6 template<int> void foo() = delete;
7};
8
9template<int> void A::foo() { int i; } // { dg-error "redefinition" }
10
11template void A::foo<0>();
This page took 4.450236 seconds and 5 git commands to generate.