GCC currently hangs when compiling the attached reproducer. The reproducer is a stripped down libc++ test that ensures that "std::make_integer_sequence<int, -100>" causes a static assertion. GCC will emit the assertion but then continue to run and consume more memory until its killed for being OOM.
Created attachment 37044 [details] reproducer.cpp standalone reproducer
All supported gcc versions show this behavior.
Seems related to c++/55722
Probably related to PR c++/96286, because if we stopped trying to compile a class after a failed static_assert then we wouldn't keep recursing in Eric's example here.