public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/100227] New: write with implicit loop
@ 2021-04-23  8:01 priv123 at hotmail dot fr
  2021-04-23  8:37 ` [Bug fortran/100227] " priv123 at hotmail dot fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: priv123 at hotmail dot fr @ 2021-04-23  8:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100227
           Summary: write with implicit loop
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: priv123 at hotmail dot fr
  Target Milestone: ---

Created attachment 50657
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50657&action=edit
example code

The code in attachment runs properly with gfortran 6.3.0 with -O1 and with
gfortran 8.3.0 with -O0, but fails with gfortran 8.3.0 with -O1:

+ gfortran --version
GNU Fortran (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

+ gfortran -Wall -Wextra -O1 pb_write.F90
+ ./a.out
 KO if -O1/gcc8   4.57776182E-41  -773.585938       3.06225753E-41
 OK: add index            1   1.00000000               5   5.00000000          
    9   9.00000000
 OK: rearranged   1.00000000       5.00000000       9.00000000
 OK: two vars     1.00000000       5.00000000       9.00000000

+ gfortran -Wall -Wextra -O0 pb_write.F90
+ ./a.out
 KO if -O1/gcc8   1.00000000       5.00000000       9.00000000
 OK: add index            1   1.00000000               5   5.00000000          
    9   9.00000000
 OK: rearranged   1.00000000       5.00000000       9.00000000
 OK: two vars     1.00000000       5.00000000       9.00000000

As see in bug 86837, it is also ok with -O1 -fno-frontend-optimize.

I'm emitting a new bug since it should have been fixed in 8.2.1 and it seems in
failure with 8.3.0.

I will check and post results with last available docker images to see if it is
fixed after 8.3.0...

Thanks for reading!

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

end of thread, other threads:[~2021-07-12 13:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23  8:01 [Bug fortran/100227] New: write with implicit loop priv123 at hotmail dot fr
2021-04-23  8:37 ` [Bug fortran/100227] " priv123 at hotmail dot fr
2021-04-23  9:13 ` [Bug fortran/100227] [8/9/10/11/12 Regression] " rguenth at gcc dot gnu.org
2021-04-23 10:21 ` dominiq at lps dot ens.fr
2021-04-23 21:01 ` anlauf at gcc dot gnu.org
2021-05-14  9:54 ` [Bug fortran/100227] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01  8:20 ` rguenth at gcc dot gnu.org
2021-07-04 15:09 ` tkoenig at gcc dot gnu.org
2021-07-12 13:51 ` tkoenig 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).