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

--- Comment #5 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:00b6346d5374efab8dabbf99d2647ad69b1df706

commit r16-6676-g00b6346d5374efab8dabbf99d2647ad69b1df706
Author: Martin Uecker <[email protected]>
Date:   Fri Jan 9 14:38:31 2026 +0100

    c: Fix ignored qualifier issue for enumerations [PR123435,PR123463]

    We accept a mismatch in qualifiers for enumerations and integers
    because we switch to the underlying type before checking that qualifiers
    match.

            PR c/123435
            PR c/123463

    gcc/c/ChangeLog:
            * c-typeck.cc (comptypes_internal): Test for qualifiers first.

    gcc/testsuite/ChangeLog:
            * gcc.dg/pr123435-1.c: New test.
            * gcc.dg/pr123435-2.c: New test.
            * gcc.dg/pr123463.c: New test.

Reply via email to