public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/37039]  New: Cray pointer with pointee DIMENSION statement after POINTER statement
@ 2008-08-06 19:14 burnus at gcc dot gnu dot org
  2009-03-29  8:26 ` [Bug fortran/37039] " fxcoudert at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-08-06 19:14 UTC (permalink / raw)
  To: gcc-bugs

From
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/14ce82ff2838fb9a

I think it is a valid program - at least in the sense that other
Cray-pointer-supporting programs support it.

The following program is rejected with

         tab(n) = 0
                  1
Error: Unexpected STATEMENT FUNCTION statement at (1)

It works if one swaps the "INTEGER, dimension(1:nnode) :: tab" with the
"POINTER(ip_tab,tab)" line.

      subroutine test(nnode)
      implicit none
      integer n,nnode
      pointer(ip_tab, tab)
      integer , dimension(1:nnode) :: tab
      do n=1,nnode
         tab(n) = 0
      enddo
      end subroutine test


-- 
           Summary: Cray pointer with pointee DIMENSION statement after
                    POINTER statement
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-37039-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-06-02 21:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-06 19:14 [Bug fortran/37039] New: Cray pointer with pointee DIMENSION statement after POINTER statement burnus at gcc dot gnu dot org
2009-03-29  8:26 ` [Bug fortran/37039] " fxcoudert at gcc dot gnu dot org
2010-02-10 19:39 ` langton at gcc dot gnu dot org
2010-05-09 20:40 ` dfranke at gcc dot gnu dot org
2010-05-12 10:06 ` dfranke at gcc dot gnu dot org
2010-05-12 15:57 ` langton at gcc dot gnu dot org
2010-05-12 16:51 ` langton at gcc dot gnu dot org
2010-05-12 19:37 ` langton at gcc dot gnu dot org
2010-05-12 22:15 ` langton at gcc dot gnu dot org
     [not found] <bug-37039-4@http.gcc.gnu.org/bugzilla/>
2011-06-02 21:58 ` langton 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).