https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121081

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <[email protected]>:

https://gcc.gnu.org/g:41177976c5e4448365f1966f6594458232db05fc

commit r16-6472-g41177976c5e4448365f1966f6594458232db05fc
Author: Martin Uecker <[email protected]>
Date:   Thu Dec 25 18:27:33 2025 +0100

    c: Fix construction of composite type for atomic pointers [PR121081]

    When constructing the composite type of two atomic pointer types,
    we used "qualify_type" which did not copy the "atomic" qualifier.
    Use c_build_type_attribute_qual_variant instead.

            PR c/121081

    gcc/c/ChangeLog:
            * c-typeck.cc (composite_type_internal): Properly copy
            atomic qualifier.

    gcc/testsuite/ChangeLog:
            * gcc.dg/pr121081.c: New test.

Reply via email to