https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- (In reply to Marek Polacek from comment #1) > Dup of PR66938? You're right, bug 66938 points out the same problem. I leave it to you to decide which one to close as a dupe (this one is broader in mentioning enumerated types as well and has a test case so I'd be inclined to keep it open.)