https://sourceware.org/bugzilla/show_bug.cgi?id=32746

--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nick Alcock <n...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fa4fe2753730f412c00a8a2bab36550c063dfe95

commit fa4fe2753730f412c00a8a2bab36550c063dfe95
Author: Nick Alcock <nick.alc...@oracle.com>
Date:   Mon Feb 24 18:11:25 2025 +0000

    libctf: fix cv-qualified unnamed struct/union field lookup

    GCC permits not only unnamed structs and unions, but cv-qualified ones.
    Our earlier fix in 6c3a38777b38a2ad87e2b2bcec4567578d1c83ec supported
    unnamed structs and unions, but only unqualified ones.

    Resolving away cvr-quals of nameless fields (and, irrelevantly, typedefs)
    is easy and fixes this problem.

    Tests adjusted accordingly.

    libctf/
            PR libctf/32746
            * ctf-types.c (ctf_member_next): Resolve away cv-quals.
            (ctf_member_info): Likewise.
            * testsuite/libctf-lookup/struct-iteration-ctf.c: Add a
cv-qualified
            type or two: make sure to keep a non-qualified one.
            * testsuite/libctf-lookup/struct-iteration.c: Verify consistency
            of ctf_member_next and ctf_member_info.
            * testsuite/libctf-lookup/struct-iteration.lk: Adjust.

    Tested-by: Stephen Brennan <stephen.s.bren...@oracle.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to