https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490
--- Comment #5 from Vadim Zeitlin <vz-gcc at zeitlins dot org> --- (In reply to Jonathan Wakely from comment #2) > I can only reproduce this with -fsyntax-only, not when compiling. Oops, you're right, really sorry about not realizing this. I was actually testing warning generation (or not), so was using -fsyntax-only all this time and didn't even think to check without it, but the problem indeed disappears if I remove it. Sorry again, but it's the first time ever I see an ICE appearing only with -fsyntax-only, so I didn't even think about this possibility.