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

egallager at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-07-19
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #6 from egallager at gcc dot gnu.org ---
(In reply to Chris Studholme from comment #0)
> We have -Wold-style-cast for C-style cast expressions, but there is no
> warning for C++ functional cast expressions even though they are essentially
> equal in their power and potential for problems.  Consider this contrived
> example:
> 
>   short x;
>   typedef long& R;
>   long& y = R(x);
>   typedef long* P;
>   long* z = P(&x);
> 

Confirming that gcc still prints no warning for this code with
-Wold-style-cast.

Reply via email to