[Patch, Fortran] PR54234 - Add -Wconversion warning for CMPLX(dp,dp)
Mikael Morin
mikael.morin@sfr.fr
Tue Aug 14 10:04:00 GMT 2012
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
More information about the Gcc-patches
mailing list