// N3922 // { dg-do compile { target c++11 } } #include template struct same_type; template struct same_type {}; auto x1 = { 1, 2 }; // decltype(x1) is std::initializer_list same_type> s1; auto x4 = { 3 }; // decltype(x4) is std::initializer_list same_type> s4; auto x5{ 3 }; // decltype(x5) is int same_type s5; auto x2 = { 1, 2.0 }; // { dg-error "initializer_list" } cannot deduce element type auto x3{ 1, 2 }; // { dg-error "one element" } not a single element