https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69872
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> --- At the moment I'm not sure to follow in detail all the special cases handled by the conditional at issue in check_narrowing, but, in general, certainly we want to emit an inform following a pedwarn only if the latter returns true. Changing that and nothing else fixes the bug.