[Bug fortran/91497] -Wconversion warns when doing explicit type conversion
sgk at troutmask dot apl.washington.edu
gcc-bugzilla@gcc.gnu.org
Wed Sep 11 14:56:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91497
--- Comment #10 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Wed, Sep 11, 2019 at 02:25:23PM +0000, manfred99 at gmx dot ch wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91497
>
> --- Comment #9 from Manfred Schwarb <manfred99 at gmx dot ch> ---
> Hi Steve,
>
> I tried your patch in comment 4, it is a good starting point.
> However, SNGL and DBLE still throw warnings:
A patch similar to what appears in comment #4 need to
be applied to gfc_simplify_dble and gfc_simplify_sngl.
> !---unknown but documented type conversions:
> !!aa=FLOATI(e)
> !!aa=FLOATJ(f)
> !!aa=FLOATK(g)
The above are under the -fdec option.
> !---LONG not allowed anymore in gfortran 10 (?):
> !!ff=LONG(a)
> !!ff=LONG(b)
> !!ff=LONG(c)
> !!ff=LONG(d)
> !!ff=LONG(g)
LONG was removed by by BOZ patch. It was documented
to convert its argument to C's 32-bit long type. Not
a good thing as long can be 64-bit. Note, SHORT was
also removed. Fortunately, LONG and SHORT were in-line
conversion, so no change to libgfortran was needed.
More information about the Gcc-bugs
mailing list