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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #6)
> But the code above doesn't trigger either warning when compiled as C.

Because I only added it for C++, see r248432 and PR 80544.

I don't think I considered cases like this, because I don't think I realised
__typeof__ keeps cv-qualifiers.

I suppose it would be possible to suppress the warning when the target type
being cast to is a typeof expression.

Reply via email to