public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/107373] New: Unexpected result with loop optimisation
@ 2022-10-24  8:39 raphael.monod at wanadoo dot fr
  2022-10-24 12:25 ` [Bug fortran/107373] " marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: raphael.monod at wanadoo dot fr @ 2022-10-24  8:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107373
           Summary: Unexpected result with loop optimisation
           Product: gcc
           Version: 8.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: raphael.monod at wanadoo dot fr
  Target Milestone: ---

Created attachment 53765
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53765&action=edit
Source of test producing the bug (MWE)

The attached test show the vector "tab_int_from_logical" contains -1, although
+1 are expected.

Compiler option -O3 is required to get this bug.
Adding a print in the loop go around it.
Degreasing the dimension 'IDIM' from 16 to 15 go around it.

I do not have test all GCC releases, but I met this bug with release : 7.3.0,
8.2.0, 8.5.0, 9.4.0.

Everything is good with releases 6.3.0, 11.3.0, 12.1.0

I known that releases used to produce this bug are no longer supported, bug I
think that debian 10 (which is again supported) use 8.x GCC release.

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

end of thread, other threads:[~2022-10-24 13:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-24  8:39 [Bug fortran/107373] New: Unexpected result with loop optimisation raphael.monod at wanadoo dot fr
2022-10-24 12:25 ` [Bug fortran/107373] " marxin at gcc dot gnu.org
2022-10-24 12:26 ` marxin at gcc dot gnu.org
2022-10-24 12:40 ` jb at gcc dot gnu.org
2022-10-24 13:06 ` marxin at gcc dot gnu.org
2022-10-24 13:25 ` rguenth 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).