[PATCH] PR fortran/50549 - should detect different type parameters in structure constructors

Harald Anlauf anlauf@gmx.de
Mon Mar 28 21:08:31 GMT 2022

Hi Tobias,

sorry for replying to myself now, but

Am 28.03.22 um 22:03 schrieb Harald Anlauf via Fortran:
> All current cases of printing a HOST_WIDE_INT in gcc/fortran/ use
> 'sprintf', and I did not find any other use of %wd/%wu.  So the
> mentioned implementation is not really stressed yet... ;-)

using HOST_WIDE_INT_PRINT_DEC in the format argument to gfc_error
instead of using %wd does not produce a warning and works.
(Also verified with insane character lengths on x86_64).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fortran-character-length-of-pointer-assignments-in-s.patch
Type: text/x-patch
Size: 3234 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20220328/c4450735/attachment.bin>

More information about the Gcc-patches mailing list