https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56691
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Known to work| |6.2.0, 7.0 Resolution|--- |FIXED Target Milestone|--- |6.2 Known to fail| |4.9.0, 5.4.1 --- Comment #5 from janus at gcc dot gnu.org --- (In reply to physiker from comment #4) > When I use gfortran version 7 to compile the code listed in comment 3, > executing the resulting binary yields the following output: > > ./pr56691 > Values in work are: > 1.00000000 2.00000000 3.00000000 4.00000000 > Call with whole array: works fine > Inside LCB: size is 4 > 1.00000000 2.00000000 3.00000000 4.00000000 > Call with array slice: off by 1 > Inside LCB: size is 4 > 1.00000000 2.00000000 3.00000000 4.00000000 > > This is the expected result. The bug might be fixed. Confirmed. In fact I see it working already in 6.2. It can definitely be closed.