public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/64678] New: Expected association error on dependent associate statements
@ 2015-01-20  0:09 antony at cosmologist dot info
  2015-01-20  1:45 ` [Bug fortran/64678] " kargl at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: antony at cosmologist dot info @ 2015-01-20  0:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64678
           Summary: Expected association error on dependent associate
                    statements
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antony at cosmologist dot info

In trunk

module X
  Type T
   integer :: map
  end Type T
contains

subroutine DoBug
Type(T) TT

 associate(A=>TT, B=>A%map)
 end associate

end subroutine
end module X

gives:

testbug.f90:10:17:

  associate(A=>TT, B=>A%map)
                 1
Error: Expected association at (1)
testbug.f90:11:4:

  end associate
    1

It's not entirely clear to me from the standard if this is allowed, but I don't
see why not (useful when you are breaking up complicated array/class structures
into associate names, where the second name refers to the first). It compiles
in ifort. Obviously low priority as can be worked around easily enough


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

end of thread, other threads:[~2015-01-24 14:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-20  0:09 [Bug fortran/64678] New: Expected association error on dependent associate statements antony at cosmologist dot info
2015-01-20  1:45 ` [Bug fortran/64678] " kargl at gcc dot gnu.org
2015-01-20  2:11 ` dominiq at lps dot ens.fr
2015-01-24 12:00 ` antony at cosmologist dot info
2015-01-24 12:15 ` dominiq at lps dot ens.fr
2015-01-24 14:05 ` anlauf at gmx dot de

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).