public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103671] New: arrays with negative strides are wrongly passed as argument.
@ 2021-12-12 18:20 mikael at gcc dot gnu.org
  2021-12-12 21:26 ` [Bug fortran/103671] " mikael at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: mikael at gcc dot gnu.org @ 2021-12-12 18:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103671
           Summary: arrays with negative strides are wrongly passed as
                    argument.
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mikael at gcc dot gnu.org
  Target Milestone: ---

This has been identified in PR102043 comment #13.
Testcase from there:

program main
   implicit none
   integer, dimension :: a(4, 4)
   a = 0
   call s(a(4:1:-1,:))
   if (any(a /= 10)) stop 1
contains
  subroutine s(b)
    implicit none
    integer, dimension(:,:) :: b
    b = 10
  end subroutine s
end program main

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

* [Bug fortran/103671] arrays with negative strides are wrongly passed as argument.
  2021-12-12 18:20 [Bug fortran/103671] New: arrays with negative strides are wrongly passed as argument mikael at gcc dot gnu.org
@ 2021-12-12 21:26 ` mikael at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: mikael at gcc dot gnu.org @ 2021-12-12 21:26 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> ---
Well, I thought there was an independent problem, but on closer look, it seems
to be the same as the original.

*** This bug has been marked as a duplicate of bug 102043 ***

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

end of thread, other threads:[~2021-12-12 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-12 18:20 [Bug fortran/103671] New: arrays with negative strides are wrongly passed as argument mikael at gcc dot gnu.org
2021-12-12 21:26 ` [Bug fortran/103671] " mikael 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).