public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/60238] New: Allow colon-separated triplet in array initialization
@ 2014-02-17 11:10 antony at cosmologist dot info
  2014-02-17 11:25 ` [Bug fortran/60238] " dominiq at lps dot ens.fr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: antony at cosmologist dot info @ 2014-02-17 11:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60238
           Summary: Allow colon-separated triplet in array initialization
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antony at cosmologist dot info

Not really a bug, but ifort (and also going back, CVF) allow a clean array
initialization sytnax like this

    integer :: indices(3)
    indices=[3:5] 


as an alternative to the ugly

indices = (/ (I, I=3, 5) /)

Supporting it would allow easier compiler interoperability.


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

end of thread, other threads:[~2014-12-06 14:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-17 11:10 [Bug fortran/60238] New: Allow colon-separated triplet in array initialization antony at cosmologist dot info
2014-02-17 11:25 ` [Bug fortran/60238] " dominiq at lps dot ens.fr
2014-02-19 10:07 ` dominiq at lps dot ens.fr
2014-12-06 14:40 ` dominiq at lps dot ens.fr

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