public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39519]  New: bad assignment to type with allocatable component
@ 2009-03-22 10:45 gilbert dot scott at easynet dot co dot uk
  2009-03-22 10:53 ` [Bug fortran/39519] " dominiq at lps dot ens dot fr
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: gilbert dot scott at easynet dot co dot uk @ 2009-03-22 10:45 UTC (permalink / raw)
  To: gcc-bugs

GNU Fortran (GCC) 4.4.0 20090219 (experimental) [trunk revision 144289]

The code below generates the output:
T2%A = 42
This is wrong, the output should be:
T2%A = 23

PROGRAM X
TYPE T
INTEGER, POINTER :: P
INTEGER, ALLOCATABLE :: A(:)
END TYPE T
TYPE(T) :: T1,T2
ALLOCATE ( T1%A(1) )
ALLOCATE ( T2%A(1) )
T1%A = 23
T2 = T1
T1%A = 42
PRINT *, 'T2%A = ',T2%A
END PROGRAM X


-- 
           Summary: bad assignment to type with allocatable component
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gilbert dot scott at easynet dot co dot uk


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


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

end of thread, other threads:[~2009-04-04 14:50 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-22 10:45 [Bug fortran/39519] New: bad assignment to type with allocatable component gilbert dot scott at easynet dot co dot uk
2009-03-22 10:53 ` [Bug fortran/39519] " dominiq at lps dot ens dot fr
2009-03-22 10:58 ` [Bug fortran/39519] [4,4 Regression] " steven at gcc dot gnu dot org
2009-03-22 11:14 ` [Bug fortran/39519] [4.4 " dominiq at lps dot ens dot fr
2009-03-22 12:22 ` pault at gcc dot gnu dot org
2009-03-22 17:54 ` pault at gcc dot gnu dot org
2009-03-22 18:26 ` hjl dot tools at gmail dot com
2009-03-22 21:17 ` steven at gcc dot gnu dot org
2009-03-31 16:00 ` [Bug fortran/39519] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-03-31 19:44 ` jakub at gcc dot gnu dot org
2009-03-31 19:51 ` pault at gcc dot gnu dot org
2009-04-04 13:19 ` [Bug fortran/39519] [4.3/4.4 " pault at gcc dot gnu dot org
2009-04-04 14:47 ` pault at gcc dot gnu dot org
2009-04-04 14:50 ` 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).