Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.pt/overload12.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do run } // Testcase for not trying a candidate that would generate an ill-formed // instantiation. template <int N> struct A { int ar[N]; }; template <int N> struct B { B () { } B (const A<N> &) { } B (const A<N-1> &, int); }; int main () { A<1> a; B<1> b1; B<1> b2 (a); }