public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/58009] New: Elements with same value in vector subscript in variable definition context
@ 2013-07-28  9:55 tkoenig at gcc dot gnu.org
  2013-07-28 10:23 ` [Bug fortran/58009] " dominiq at lps dot ens.fr
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2013-07-28  9:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58009

            Bug ID: 58009
           Summary: Elements with same value in vector subscript in
                    variable definition context
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org

The following is illegal:

program main
  real, dimension(4) :: a,b
  read (*,*) a
  b([1,2,3,2]) = a
  print *,b
end

See F 2008, 6.5.3.3.2:

If a vector subscript has two or more elements with the same value, an array
section with that vector subscript
shall not appear in a variable definition context (16.6.7)


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

end of thread, other threads:[~2013-07-28 21:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-28  9:55 [Bug fortran/58009] New: Elements with same value in vector subscript in variable definition context tkoenig at gcc dot gnu.org
2013-07-28 10:23 ` [Bug fortran/58009] " dominiq at lps dot ens.fr
2013-07-28 11:25 ` burnus at gcc dot gnu.org
2013-07-28 12:38 ` tkoenig at gcc dot gnu.org
2013-07-28 21:16 ` 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).