This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR54234 - Add -Wconversion warning for CMPLX(dp,dp)
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 14 Aug 2012 12:02:18 +0200
- Subject: Re: [Patch, Fortran] PR54234 - Add -Wconversion warning for CMPLX(dp,dp)
- References: <502A1B4E.2070106@net-b.de>
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