https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93711
--- Comment #1 from Evan Teran <eteran at alum dot rit.edu> --- As a follow-up, it appears that the optimization level is a factor. I only get the ICE in my builds which don't pass a -O flag. Here's a live example that can be experimented with: https://godbolt.org/z/zAEcQd Adding -Og, -O1, -O2, etc... all make it suddenly work.