aaron.ballman added inline comments.
================ Comment at: test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-0x.cpp:136 Agg<float> f8 = {EnumVal}; // OK + // expected-warning@+1 {{implicit conversion from 'int' to 'float' changes value from 123456789 to 1.2345679E+8}} Agg<float> f9 = {123456789}; // expected-error {{ cannot be narrowed }} expected-note {{silence}} ---------------- I don't think we want the warning triggered in either of these cases -- they already have an error diagnostic on the same line for the same issue. ================ Comment at: test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-cxx11-nowarn.cpp:124 Agg<float> f4 = {12345678}; // OK (exactly fits in a float) + // expected-warning@+1 {{implicit conversion from 'int' to 'float' changes value from 123456789 to 1.2345679E+8}} Agg<float> f5 = {123456789}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}} ---------------- I think we don't want to duplicate the warnings here, either. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D52835/new/ https://reviews.llvm.org/D52835 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits