This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2006 02:51:45 -0000
- Subject: [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
- References: <bug-29302-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from howarth at nitro dot med dot uc dot edu 2006-11-02 02:51 -------
A couple other observations. The latest Xcode 2.4.1 release doesn't fix this
problem. Also, shorter version of the testcase...
implicit none
character*40 l
character*12 fmt
real zero, pos_inf
zero = 0.0
pos_inf = 1.0/zero
fmt = '(F0.0)'
write(l,fmt=fmt)pos_inf
end
fails when zero and pos_inf is declared as real, real*4 or real*8 so all forms
of the builtin isfinite macros are broken on Darwin PPC with Xcode 2.4.x. Also,
if I compile write.c with -DHAVE_BROKEN_ISFINITE, the resulting libgfortran
passes the nan_inf_fmt test.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302