public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55134] New: associate construct and assumed size array
@ 2012-10-30  9:48 valeryweber at hotmail dot com
  2012-10-30 11:34 ` [Bug fortran/55134] " burnus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: valeryweber at hotmail dot com @ 2012-10-30  9:48 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55134
           Summary: associate construct and assumed size array
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: valeryweber@hotmail.com


Dear All

I get a wrong result when associating an array via an associate construct and
passing it as assumed size array to a routine.

gcc version 4.8.0 20121018 (experimental) (GCC) 

>>>>>>
program bug
  implicit none
  integer,dimension(1)::i
  i(:)=1
  associate(a =>i)
    call foo(a)
  end associate
  write(*,*) i
contains
  subroutine foo(v)
    integer, dimension(*) :: v
    v(1)=2
  end subroutine foo
end program bug
<<<<<<

this gives me

./a.out 
           1

while I would expect 2

Valery


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

end of thread, other threads:[~2012-10-31 17:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-30  9:48 [Bug fortran/55134] New: associate construct and assumed size array valeryweber at hotmail dot com
2012-10-30 11:34 ` [Bug fortran/55134] " burnus at gcc dot gnu.org
2012-10-31 17:23 ` burnus at gcc dot gnu.org
2012-10-31 17:24 ` burnus 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).