| 1 |
// PR c++/49776 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct s |
| 5 |
{ |
| 6 |
int i[1]; |
| 7 |
|
| 8 |
template<class... Types> |
| 9 |
constexpr s(Types... args) |
| 10 |
: i{args...} // { dg-error "cannot convert" } |
| 11 |
{ } |
| 12 |
}; |
| 13 |
|
| 14 |
int main() |
| 15 |
{ |
| 16 |
s test = nullptr; |
| 17 |
} |