This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/32954] mask and -fdefault-integer-8



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]