https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120510
--- Comment #4 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:aea870e9533daf27f3df2d3b82e233c907f80e27 commit r16-1352-gaea870e9533daf27f3df2d3b82e233c907f80e27 Author: Martin Uecker <uec...@tugraz.at> Date: Sat Jun 7 14:24:28 2025 +0200 c: partial fix for qualifier inconsistency II [PR120510] This fixes a case where we invoke composite_type with types that do not have matching qualifiers. With this change, we can activate the checking assertion that makes sure the composite type is compatible with the two original types also for arrays. PR c/120510 gcc/c/ChangeLog: * c-typeck.cc (composite_type_internal): Activate checking assertion for arrays. (common_pointer_type): Remove qualifiers also from arrays.