repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
sfinae3.C
blob
8d141ea0ad136c208db93187c405c4db7b028afe
1
// PR c++/24671
2
// { dg-options "" }
3
4
template<typename> struct A
5
{
6
typedef int X;
7
static const int i = 0;
8
};
9
10
template<typename> struct B
11
{
12
B(const B&); // { dg-error "candidate" }
13
typedef typename A<char[A<B>::i]>::X Y;
14
template<typename T> B(T, Y); // { dg-error "call" }
15
};
16
17
B<int> b(0,0);