https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104792
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needs-reduction
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-03-06
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Interesting clang also warns but I think the warning is not needed even if it
is a local defined alias, it is defined inside the struct itself rather than in
the function scope.