https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108080
--- Comment #7 from Gregory Dushkin <yagreg7 at gmail dot com> --- Sorry for splitting the comments, but the issue indeed appears to be tied to optimization options. When manually specifying -Og, -O1, -O2, -O3, -Os the compilation is successful. I only observe the ICE with -O0 or no optimization options.