Skip to content
Snippets Groups Projects
Commit 19f019c2 authored by Jason Merrill's avatar Jason Merrill
Browse files

new

From-SVN: r25659
parent 21a3b983
No related branches found
No related tags found
No related merge requests found
// 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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment