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
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic124.C
blob
d69c6f912c92cead1dd8501d60133631a072f3f5
1
// PR c++/52292
2
// { dg-do compile { target c++11 } }
3
4
template <template <typename...> class T>
5
struct foo {
6
template <typename... U>
7
foo(T<U...> x) { }
8
};
9
10
template <typename T>
11
struct bar {
12
bar(T x) : value(x) { }
13
14
T value;
15
};
16
17
struct generic : private foo<bar> {
18
template <typename T>
19
generic(bar<T> x) : foo(x)
20
{
21
}
22
23
};
24
25
int main()
26
{
27
bar<int> x(32);
28
generic y(x); // FAILS
29
}