https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79751
David Stone <david at doublewise dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david at doublewise dot net --- Comment #2 from David Stone <david at doublewise dot net> --- Resolved in gcc 10.1. It now correctly rejects this code.