https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103057
--- Comment #5 from Dennis Lubert <plasmahh at gmx dot net> --- Created attachment 51759 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51759&action=edit cvise generated compling testcase This one is pretty big but compiles with -w but ICEs without it. Differently to my original code, here there is no unused argument that when being used silences the warning and so circumvents the ICE. So I am not totally sure if there maybe a third bug lurking somewhere... Currently our code to be able to not ICE disables Wunused-parameter and Wunused-value for the functions in question.