Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / cpp0x / constexpr-49776.C
blobc1d1c375448c647051c4a802c8aada14faa52202
1 // PR c++/49776
2 // { dg-do compile { target c++11 } }
4 struct s
6   int i[1];
8   template<class... Types>
9     constexpr s(Types... args)
10     : i{args...}  // { dg-error "cannot convert" }
11     { }
14 int main()
16   s test = nullptr;