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

--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
-Wuseless-cast is not enabled with -Wextra or -Wall so I am not sure why you
think this should NOT warn.

>The warning is a false alarm because the corresponding expression is not 
>evaluated,

It might not be evaluated but according to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64509#c3 the type checking
semantics are still happen.

Reply via email to