public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/19926] New: Incorrect rank with PARAMETER and array element.
@ 2005-02-12 21:10 sgk at troutmask dot apl dot washington dot edu
  2005-02-12 21:35 ` [Bug fortran/19926] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2005-02-12 21:10 UTC (permalink / raw)
  To: gcc-bugs

>From Richard Maine, editor of the F2003 standard

    subroutine string_comp
       integer, parameter :: map(0:50) = 0
       integer :: i
       i = map(42)
    end subroutine string_comp

    In file bug2.f90:4

       i = map(42)
           1
    Error: Incompatible ranks 0 and 1 in assignment at (1)

    Note that it works without the parameter attribute.

-- 
           Summary: Incorrect rank with PARAMETER and array element.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sgk at troutmask dot apl dot washington dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-07-08 21:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-12 21:10 [Bug fortran/19926] New: Incorrect rank with PARAMETER and array element sgk at troutmask dot apl dot washington dot edu
2005-02-12 21:35 ` [Bug fortran/19926] " pinskia at gcc dot gnu dot org
2005-03-12 12:57 ` toon at moene dot indiv dot nluug dot nl
2005-06-10 23:35 ` eedelman at acclab dot helsinki dot fi
2005-06-11  9:39 ` eedelman at acclab dot helsinki dot fi
2005-06-11 12:44 ` eedelman at acclab dot helsinki dot fi
2005-06-11 13:49 ` sgk at troutmask dot apl dot washington dot edu
2005-06-13  1:49 ` kargl at gcc dot gnu dot org
2005-06-18 18:16 ` cvs-commit at gcc dot gnu dot org
2005-06-18 18:21 ` [Bug fortran/19926] [4.0 only] " kargl at gcc dot gnu dot org
2005-06-18 18:27 ` cvs-commit at gcc dot gnu dot org
2005-07-08 21:21 ` cvs-commit at gcc dot gnu dot org
2005-07-08 21:25 ` cvs-commit at gcc dot gnu dot org
2005-07-08 21:26 ` kargl at gcc dot gnu dot 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).