public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25746]  New: Elemental assignment gives wrong result
@ 2006-01-11  8:26 anlauf at gmx dot de
  2006-01-11 13:58 ` [Bug fortran/25746] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: anlauf at gmx dot de @ 2006-01-11  8:26 UTC (permalink / raw)
  To: gcc-bugs

Hi,

now that elemental subroutines appear to not ICE anymore,
I found that the example code at

http://home.comcast.net/~kmbtib/Fortran_stuff/elem_assign.f90

gives a wrong result.

gfortran prints:

 original x =            7          11          13
 permuted x =           11          13           7
      new x =           11          13          11

However, the last line should equal the second.  It appears that
the assignment

   x = x((/2,3,1/))

does not properly recognize that source and target overlap.

Cheers,
-ha


-- 
           Summary: Elemental assignment gives wrong result
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de
  GCC host triplet: i686-pc-linux-gnu


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



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

end of thread, other threads:[~2006-05-28 19:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-11  8:26 [Bug fortran/25746] New: Elemental assignment gives wrong result anlauf at gmx dot de
2006-01-11 13:58 ` [Bug fortran/25746] " pinskia at gcc dot gnu dot org
2006-01-15 20:33 ` pault at gcc dot gnu dot org
2006-04-07 10:13 ` paul dot richard dot thomas at cea dot fr
2006-04-07 10:16 ` paul dot richard dot thomas at cea dot fr
2006-04-21 11:35 ` patchapp at dberlin dot org
2006-05-15 19:36 ` patchapp at dberlin dot org
2006-05-21  7:35 ` pault at gcc dot gnu dot org
2006-05-28 19:48 ` [Bug fortran/25746] Elemental assignment gives wrong result (fixed in trunk) pault at gcc dot gnu dot org
2006-05-28 19:52 ` pault at gcc dot gnu dot org
2006-05-28 19:54 ` [Bug fortran/25746] Elemental assignment gives wrong result pault 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).