Code listed below crashes compiler I compile it with g++ -std=c++11 test.cpp #include <initializer_list> template <template<typename...> class C, typename... T> void g(const C<T...>& a) { } int main() { g<std::initializer_list, int>({1, 2, 3}); }
This was fixed in r219557 and is fixed in 5/trunk.
(In reply to Marek Polacek from comment #1) > This was fixed in r219557 and is fixed in 5/trunk. I know about absence of problem in 5.1.
It is not a regression for 4.9.3, because it ICEed before.