https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65801
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Paolo Carlini from comment #5) > Well, at the time I think we agreed that we wanted to be strict at least > about enums... Otherwise, yes, we can do that plus setting ok = true in that > case too, thus collapsing the last two ifs (+ reverting the docs change and > adjusting the testsuite). I think that for constants, we want it to be an error without -Wno-narrowing. I wonder if the best way to get that is to set pedantic_errors around the pedwarn call?