PING: [Patch, fortran] PR fortran/96724 - Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra

José Rui Faustino de Sousa jrfsousa@gmail.com
Wed Jun 16 15:13:00 GMT 2021


*PING*


-------- Forwarded Message --------
Subject: [Patch, fortran] PR fortran/96724 - Bogus warnings with the 
repeat intrinsic and the flag -Wconversion-extra
Date: Thu, 20 Aug 2020 16:52:10 +0000
From: José Rui Faustino de Sousa <jrfsousa@gmail.com>
To: fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org

Hi all!

Proposed patch to PR96724 - Bogus warnings with the repeat intrinsic and 
the flag -Wconversion-extra.

Patch tested only on x86_64-pc-linux-gnu.

Add code to force conversion to the default wider integer type before 
multiplication.

Thank you very much.

Best regards,
José Rui


2020-8-20  José Rui Faustino de Sousa  <jrfsousa@gmail.com>

   PR fortran/96724
   * iresolve.c (gfc_resolve_repeat): Force conversion to
   gfc_index_integer_kind before the call to gfc_multiply.

2020-8-20  José Rui Faustino de Sousa  <jrfsousa@gmail.com>

   PR fortran/96724
   * repeat_8.f90.f90: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR96724.patch
Type: text/x-patch
Size: 2884 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210616/0e0b3a71/attachment.bin>


More information about the Fortran mailing list