public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/46638] New: Wrong result with TRANSFER from string to DT
@ 2010-11-24  8:57 burnus at gcc dot gnu.org
  2010-11-24  9:06 ` [Bug fortran/46638] " burnus at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-11-24  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Wrong result with TRANSFER from string to DT
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
            Blocks: 32834


The following program of James Van Buskirk prints with gfortran 4.3 to 4.6:
0000000A 0000000A 0000000A 0000000A

Expected result (as with NAG, g95, ifort):
0000000A 756E6547 49656E69 6C65746E


Found at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/1b907e3b7b6f3461

program test5
   use ISO_C_BINDING
   implicit none
   type, bind(C) :: CPUID_type
      integer(C_INT32_T) eax
      integer(C_INT32_T) ebx
      integer(C_INT32_T) edx
      integer(C_INT32_T) ecx
   end type CPUID_type
   type(CPUID_TYPE) result
result =
transfer(achar(10)//achar(0)//achar(0)//achar(0)//'GenuineIntel',result)
write(*,'(4(z8.8:1x))') result
end program test5


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

end of thread, other threads:[~2010-11-27 21:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-24  8:57 [Bug fortran/46638] New: Wrong result with TRANSFER from string to DT burnus at gcc dot gnu.org
2010-11-24  9:06 ` [Bug fortran/46638] " burnus at gcc dot gnu.org
2010-11-24  9:14 ` burnus at gcc dot gnu.org
2010-11-24 10:34 ` burnus at gcc dot gnu.org
2010-11-24 17:07 ` burnus at gcc dot gnu.org
2010-11-25  8:50 ` burnus at gcc dot gnu.org
2010-11-25  9:43 ` burnus at gcc dot gnu.org
2010-11-25  9:43 ` burnus at gcc dot gnu.org
2010-11-27 21:22 ` mikpe at it dot uu.se
2010-11-27 21:26 ` burnus at gcc dot gnu.org
2010-11-27 21:28 ` burnus at gcc dot gnu.org
2010-11-27 21:57 ` 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).