[Bug c++/86218] [9 Regression] ICE in compare_ics, at cp/call.c:9769
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 19 21:12:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list