// PR c++/102434 // { dg-do compile { target c++11 } } using size_t = decltype(sizeof 0); namespace std { template union initializer_list { // { dg-error "definition of .*std::initializer_list.* does not match" } const T *ptr; size_t n; }; } template void Task() {} auto b = { &Task }; // { dg-prune-output "compilation terminated" }