[Bug c/92935] typeof() on an atomic type doesn't always return the corresponding unqualified type

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 26 07:23:02 GMT 2020


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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <uecker@gcc.gnu.org>:

https://gcc.gnu.org/g:768ce4f0ceb030e38427e85e483ed44330cd5da7

commit r11-5397-g768ce4f0ceb030e38427e85e483ed44330cd5da7
Author: Martin Uecker <muecker@gwdg.de>
Date:   Thu Nov 26 08:12:12 2020 +0100

    C: Do not drop qualifiers in typeof for _Atomic types. [PR65455,PR92935]

    2020-11-25  Martin Uecker  <muecker@gwdg.de>

    gcc/c/
            PR c/65455
            PR c/92935
            * c-parser.c (c_parser_declaration_or_fndef): Remove
            redundant code to drop qualifiers of _Atomic types for __auto_type.
            (c_parser_typeof_specifier): Do not drop qualifiers of _Atomic
            types for __typeof__.

    gcc/
            PR c/65455
            PR c/92935
            * ginclude/stdatomic.h: Use comma operator to drop qualifiers.

    gcc/testsuite/
            PR c/65455
            PR c/92935
            * gcc.dg/typeof-2.c: Adapt test.


More information about the Gcc-bugs mailing list