https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86218

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Is this really valid though?
clang++ says
86218.C:8:7: error: type 'double' cannot be narrowed to 'char' in initializer
list [-Wc++11-narrowing]
and if I use

  f ({static_cast<char>(2.0)});

then g++ compiles it fine.

Reply via email to