https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81145
--- Comment #2 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> --- I've tried a few things and not found any way to get wrong code. I think you're right that this is just a diagnostic issue.