https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118061
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>: https://gcc.gnu.org/g:d9e834958e82219f836577da4ef8176aca2c7c9f commit r15-8286-gd9e834958e82219f836577da4ef8176aca2c7c9f Author: Martin Uecker <uec...@tugraz.at> Date: Sat Mar 1 17:21:25 2025 +0100 c: Fix ICE in error recovery when checking struct compatibility [PR118061] Return early when comparing two structures for compatibility and the type of a member is erroneous. PR c/118061 gcc/c/ChangeLog: * c-typeck.cc (tagged_types_tu_compatible_p): Handle errors in types of struct members. gcc/testsuite/ChangeLog: * gcc.dg/pr118061.c: New test.