This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/32954] mask and -fdefault-integer-8
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Aug 2007 08:06:40 -0000
- Subject: [Bug libfortran/32954] mask and -fdefault-integer-8
- References: <bug-32954-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from dominiq at lps dot ens dot fr 2007-08-02 08:06 -------
The following reduced cas:
integer,allocatable :: foo(:,:)
allocate(foo(0,1:7))
print *, pack(foo(:,1),foo(:,1)==0,(/1,2/))
deallocate(foo)
end
gives a "Bus error" when run. It works if I replace the mask by a scalar or if
I remove the vector (/1,2/).
This is for gfortran 4.3.0 revision 127147 for which I have reloaded iresolve.c
from the repository (anyway I had the right version). Do you see the bus error?
or is it a bug for big endian machines only?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32954