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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:e580f81d22d61153564959f08d9a6d3bcc7fd386

commit r12-8173-ge580f81d22d61153564959f08d9a6d3bcc7fd386
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Apr 14 17:49:47 2022 -0400

    c++: unsigned int32_t enum promotion [PR102804]

    There's been an extension for a long time to allow applying 'unsigned' to
an
    int typedef, but that was confusing the integer promotion code.  Fixed by
    forgetting about the typedef in that case.

    I'm going to make this an unconditional pedwarn in stage 1.

            PR c++/102804

    gcc/cp/ChangeLog:

            * decl.cc (grokdeclarator): Drop typedef used with 'unsigned'.

    gcc/testsuite/ChangeLog:

            * g++.dg/ext/unsigned-typedef1.C: New test.

Reply via email to