Index: cp/call.c =================================================================== --- cp/call.c (revision 201331) +++ cp/call.c (working copy) @@ -9396,6 +9396,8 @@ is_std_init_list (tree type) /* Look through typedefs. */ if (!TYPE_P (type)) return false; + if (cxx_dialect == cxx98) + return false; type = TYPE_MAIN_VARIANT (type); return (CLASS_TYPE_P (type) && CP_TYPE_CONTEXT (type) == std_node Index: testsuite/g++.dg/parse/crash63.C =================================================================== --- testsuite/g++.dg/parse/crash63.C (revision 0) +++ testsuite/g++.dg/parse/crash63.C (working copy) @@ -0,0 +1,10 @@ +// PR c++/57947 +// { dg-options "-std=c++98" } + +namespace std +{ + template class initializer_list {}; + template struct D { D(initializer_list) {} }; + D<0> d {1, 2, 3}; // { dg-error "constructor|no matching" } + // { dg-warning "initializer list" "" { target *-*-* } 8 } +}