repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* c-common.c (get_priority): Add check for
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
overload12.C
blob
c992eafb9bab064618802453bd0cc5984bba274c
1
// { dg-do run }
2
// Testcase for not trying a candidate that would generate an ill-formed
3
// instantiation.
4
5
template <int N> struct A {
6
int ar[N];
7
};
8
9
template <int N> struct B {
10
B () { };
11
B (const A<N> &) { };
12
B (const A<N-1> &, int);
13
};
14
15
int
16
main ()
17
{
18
A<1> a;
19
B<1> b1;
20
B<1> b2 (a);
21
}
22