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