public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96724] New: Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra
@ 2020-08-20 16:36 jrfsousa at gmail dot com
  2020-08-21 16:44 ` [Bug fortran/96724] " dominiq at lps dot ens.fr
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jrfsousa at gmail dot com @ 2020-08-20 16:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96724

            Bug ID: 96724
           Summary: Bogus warnings with the repeat intrinsic and the flag
                    -Wconversion-extra
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jrfsousa at gmail dot com
  Target Milestone: ---

Created attachment 49088
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49088&action=edit
Fortran code demonstrating problems.

Hi all!

Getting bogus warnings using the flag -Wconversion-extra of the type:

Warning: Conversion from INTEGER(<some kind /= 8>) to INTEGER(8)

AFAIK the repeat intrinsic is "generic" on integer kind and, IMHO, no warnings
should be generated.

Tested on:

GNU Fortran (GCC) 9.3.1 20200819
GNU Fortran (GCC) 10.2.1 20200819
GNU Fortran (GCC) 11.0.0 20200807 (experimental)

Thank you very much.

Best regards,
José Rui

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/96724] Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra
  2020-08-20 16:36 [Bug fortran/96724] New: Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra jrfsousa at gmail dot com
@ 2020-08-21 16:44 ` dominiq at lps dot ens.fr
  2021-02-20 12:38 ` dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2020-08-21 16:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96724

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-08-21
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Patch at https://gcc.gnu.org/pipermail/fortran/2020-August/054902.html.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/96724] Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra
  2020-08-20 16:36 [Bug fortran/96724] New: Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra jrfsousa at gmail dot com
  2020-08-21 16:44 ` [Bug fortran/96724] " dominiq at lps dot ens.fr
@ 2021-02-20 12:38 ` dominiq at lps dot ens.fr
  2024-01-05 21:16 ` anlauf at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2021-02-20 12:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96724

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Patch at https://gcc.gnu.org/pipermail/fortran/2020-August/054902.html.

You should PING the gfortran and patches mailing lists?

I hva the patch in my working directory without any problem.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/96724] Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra
  2020-08-20 16:36 [Bug fortran/96724] New: Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra jrfsousa at gmail dot com
  2020-08-21 16:44 ` [Bug fortran/96724] " dominiq at lps dot ens.fr
  2021-02-20 12:38 ` dominiq at lps dot ens.fr
@ 2024-01-05 21:16 ` anlauf at gcc dot gnu.org
  2024-01-05 21:39 ` anlauf at gcc dot gnu.org
  2024-01-06 14:57 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-01-05 21:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96724

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |anlauf at gcc dot gnu.org
             Status|WAITING                     |ASSIGNED

--- Comment #3 from anlauf at gcc dot gnu.org ---
I have an even simpler variant based on Jose's patch.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/96724] Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra
  2020-08-20 16:36 [Bug fortran/96724] New: Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra jrfsousa at gmail dot com
                   ` (2 preceding siblings ...)
  2024-01-05 21:16 ` anlauf at gcc dot gnu.org
@ 2024-01-05 21:39 ` anlauf at gcc dot gnu.org
  2024-01-06 14:57 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-01-05 21:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96724

--- Comment #4 from anlauf at gcc dot gnu.org ---
Submitted: https://gcc.gnu.org/pipermail/fortran/2024-January/060090.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/96724] Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra
  2020-08-20 16:36 [Bug fortran/96724] New: Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra jrfsousa at gmail dot com
                   ` (3 preceding siblings ...)
  2024-01-05 21:39 ` anlauf at gcc dot gnu.org
@ 2024-01-06 14:57 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-01-06 14:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96724

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |14.0

--- Comment #5 from anlauf at gcc dot gnu.org ---
Pushed as r14-6970-g723bd722d616bb.

For unknown reasons I do not see any mail generated for bugzilla,
so I am adding the info here:


Fortran: bogus warnings with REPEAT intrinsic and -Wconversion-extra [PR96724]

gcc/fortran/ChangeLog:

PR fortran/96724
* iresolve.cc (gfc_resolve_repeat): Force conversion to
gfc_charlen_int_kind before call to gfc_multiply.

gcc/testsuite/ChangeLog:

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

Co-authored-by: José Rui Faustino de Sousa <jrfsousa@gmail.com>


@José: thanks for the original patch, and sorry that it took so long
to take care of it.

Closing.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-06 14:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 16:36 [Bug fortran/96724] New: Bogus warnings with the repeat intrinsic and the flag -Wconversion-extra jrfsousa at gmail dot com
2020-08-21 16:44 ` [Bug fortran/96724] " dominiq at lps dot ens.fr
2021-02-20 12:38 ` dominiq at lps dot ens.fr
2024-01-05 21:16 ` anlauf at gcc dot gnu.org
2024-01-05 21:39 ` anlauf at gcc dot gnu.org
2024-01-06 14:57 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).