1 2 3 4 5 6 7 8 9 10 11 12
// PR c++/22434 struct A { A(void*); ~A(); }; void foo(const int i, bool b) { b ? A(0) : i; // { dg-error "" } }