https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120510
--- Comment #3 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:c1904cd27b2bb69f884e4958d9ceb78159470975 commit r16-1351-gc1904cd27b2bb69f884e4958d9ceb78159470975 Author: Martin Uecker <uec...@tugraz.at> Date: Thu Jun 5 23:55:39 2025 +0200 c: partial fix for qualifier inconsistency [PR120510] Checking assertions revealed that we sometimes produce composite types with incorrect qualifiers, e.g. the example int f(int [_Atomic]); int f(int [_Atomic]); int f(int [_Atomic]); was rejected because atomic was lost in the second declaration. PR c/120510 gcc/c/ChangeLog: * c-typeck.cc (composite_types_internal): Handle arrays declared with atomic for function arguments. gcc/testsuite/ChangeLog: * gcc.dg/pr120510.c