This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] PR54234 - Add -Wconversion warning for CMPLX(dp,dp)


On 14/08/2012 11:33, Tobias Burnus wrote:
> This patch adds a -Wconversion warning (enabled also by -Wall) for
>   CMPLX(real, real)
> if the real arguments have a higher kind number/precision as the
> default-kind of complex/real. I think most of the time, this precision
> loss is unintended; it can be silenced when using a kind= parameter (or
> -Wno-conversion).
> 
> However, if you believe that the warning is not suitable for -Wall, we
> can also hide it by only enabling it with the talkative
> -Wconversion-extra flag.
> 
> Build and regtested on x86-64-linux.
> OK for the trunk?
> 
> Tobias

Yes, thanks

Mikael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]