https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44648
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |8.2.0 --- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- GCC 8 and 9 diagnose all four instances in the test case in comment #5. The last one being the result of r249083 (except in C++ 98 mode where it still isn't diagnosed): r249083 | jason | 2017-06-09 18:46:51 -0400 (Fri, 09 Jun 2017) | 5 lines Don't fold conversion from a constant variable. * call.c (convert_like_real): Remove "inner" parameter. Don't replace a constant with its value. * cp-gimplify.c (cp_fully_fold): Use cp_fold_rvalue. Let me add the test to the test suite and xfailing the last case in C++ 98 mode.