public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39864]  New: INTRINSIC :: RESHAPE causes spurious error
@ 2009-04-23 12:23 michael dot a dot richmond at nasa dot gov
  2009-04-23 12:50 ` [Bug fortran/39864] [4.5 Regression] " burnus at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2009-04-23 12:23 UTC (permalink / raw)
  To: gcc-bugs

When I attempt to compile the following function using
http://users.physik.fu-berlin.de/~tburnus/gcc-trunk/gcc-trunk-x86_64.tar.gz

FUNCTION next_state()
INTRINSIC :: RESHAPE
INTEGER, PARAMETER :: trantb(1,1) = RESHAPE((/1,2/), shape=(/1,1/))
next_state = trantb(1, 1)
END FUNCTION next_state

I get the message:

test161.f90:3.67:

INTEGER, PARAMETER :: trantb(1,1) = RESHAPE((/1,2/), shape=(/1,1/))
                                                                   1
Error: Symbol at (1) is not a DUMMY variable
test161.f90:3.67:

INTEGER, PARAMETER :: trantb(1,1) = RESHAPE((/1,2/), shape=(/1,1/))
                                                                   1
Error: Symbol at (1) is not a DUMMY variable

The problem goes away if I remove "INTRINSIC :: RESHAPE"


-- 
           Summary: INTRINSIC :: RESHAPE causes spurious error
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2009-04-24  8:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-23 12:23 [Bug fortran/39864] New: INTRINSIC :: RESHAPE causes spurious error michael dot a dot richmond at nasa dot gov
2009-04-23 12:50 ` [Bug fortran/39864] [4.5 Regression] " burnus at gcc dot gnu dot org
2009-04-23 20:21 ` janus at gcc dot gnu dot org
2009-04-24  8:34 ` janus at gcc dot gnu dot org
2009-04-24  8:40 ` janus 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).