public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/66089] New: elemental dependency mishandling when derived types are involved
@ 2015-05-09 18:45 mikael at gcc dot gnu.org
  2015-05-09 18:47 ` [Bug fortran/66089] " mikael at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: mikael at gcc dot gnu.org @ 2015-05-09 18:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66089
           Summary: elemental dependency mishandling when derived types
                    are involved
           Product: gcc
           Version: 6.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 is a followup to pr65894.
We don't handle correctly the dependencies when elemental procedures and
derived types are involved.
Test:

  type :: t
    integer :: c
  end type t

  type(t), dimension(5) :: a, b, c

  a = t(1)
  b = t(7)
  c = t(13)
  c = plus(c(1), b)
  print *, c
  if (any(c%c /= 20)) call abort

contains

  elemental function plus(lhs, rhs)
    type(t), intent(in) :: lhs, rhs
    type(t)             :: plus
    plus%c = lhs%c + rhs%c
  end function plus

end


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

end of thread, other threads:[~2015-10-16  8:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-09 18:45 [Bug fortran/66089] New: elemental dependency mishandling when derived types are involved mikael at gcc dot gnu.org
2015-05-09 18:47 ` [Bug fortran/66089] " mikael at gcc dot gnu.org
2015-05-10 13:33 ` mikael at gcc dot gnu.org
2015-05-12 12:54 ` [Bug fortran/66089] [6 Regression] " dominiq at lps dot ens.fr
2015-05-21 14:15 ` vehre at gcc dot gnu.org
2015-05-21 15:12 ` mikael at gcc dot gnu.org
2015-05-21 15:19 ` vehre at gcc dot gnu.org
2015-05-22  9:23 ` vehre at gcc dot gnu.org
2015-10-16  8:29 ` rguenth at gcc dot gnu.org
2015-10-16  8:33 ` 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).