]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/variadic74.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic74.C
CommitLineData
bc3e284b 1// { dg-do compile { target c++11 } }
d6a85c8d
DG
2template <class... Types> class A
3{
4public:
bc3e284b 5 template <Types... Values> class X { /* ... */ }; // { dg-error "not a valid type for a template non-type parameter" }
d6a85c8d
DG
6};
7
8template<class... Types> class B
9{
10public:
11 template <Types*... Values> class X {
12 typename A<Types*...>::template X<Values...> foo;
13 };
14};
15
16int i;
17float f;
18
19A<int*, float*>::X<&i, &f> apple1;
20B<int, float>::X<&i, &f> banana1;
21
0621f7c2 22A<int*, float*>::X<&i> apple2; // { dg-error "wrong number of template arguments" "wrong number" }
0621f7c2 23A<int*, float*>::X<&i, &f, &f> apple3; // { dg-error "wrong number of template arguments" "wrong number" }
d6a85c8d 24A<int, float> apple4;
b0ff7fe1
JM
25
26// { dg-prune-output "provided for" }
This page took 8.645871 seconds and 5 git commands to generate.