public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36214]  New: Wrong simplification of BOZ constants
@ 2008-05-11 22:29 fxcoudert at gcc dot gnu dot org
  2008-05-26 15:00 ` [Bug fortran/36214] " jvdelisle at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-05-11 22:29 UTC (permalink / raw)
  To: gcc-bugs

$ cat u.f90
   implicit none
   real, parameter :: r = transfer(0,0.)
   real(kind=8), parameter :: rd = dble(b'00000000000000000000000000000000&
                                         &01000000001010010101001111111101')

   if (cmplx(b'00000000000000000000000000000000&
              &01000000001010010101001111111101',0,8) /= rd) call abort

end
$ gfortran u.f90 && ./a.out 
Aborted


That's on x86_64-linux, and the weird thing is: if you remove the useless
definition of r, it starts working again :)  And yet valgrind doesn't have
anything to say. I'm mystified.

(PS: I found that one while investigating PR36186, but it's independent.)


-- 
           Summary: Wrong simplification of BOZ constants
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-12-25  1:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-11 22:29 [Bug fortran/36214] New: Wrong simplification of BOZ constants fxcoudert at gcc dot gnu dot org
2008-05-26 15:00 ` [Bug fortran/36214] " jvdelisle at gcc dot gnu dot org
2008-05-26 16:51 ` jvdelisle at gcc dot gnu dot org
2008-08-08 22:17 ` jv244 at cam dot ac dot uk
2008-09-10 14:56 ` domob at gcc dot gnu dot org
2008-09-10 15:44 ` kargl at gcc dot gnu dot org
2008-09-10 16:09 ` domob at gcc dot gnu dot org
2008-09-10 19:06 ` domob at gcc dot gnu dot org
2008-09-11  7:31 ` domob at gcc dot gnu dot org
2008-09-14 10:00 ` domob at gcc dot gnu dot org
2008-09-14 10:03 ` domob at gcc dot gnu dot org
2008-12-25  1:47 ` pinskia 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).