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 fortran/17283] UNPACK issues


------- Additional Comments From Thomas dot Koenig at online dot de  2004-12-22 16:52 -------

> The issues with PACK are fixed, keeping this open as a reminder that UNPACK
> still has issues as pointed out in #4

Test case for the scalar case:

$ cat unpack.f90
program main
  real, dimension(3) :: a, b
  a = (/ 3., 2., 1./)
  b = unpack(a,.true.,0.)
  print *,b
end program main
$ gfortran unpack.f90
 In file unpack.f90:4

  b = unpack(a,.true.,0.)
              1
Error: 'mask' argument of 'unpack' intrinsic at (1) must be an array
$ gfortran -v
Using built-in specs.
Configured with: ../gcc/configure --prefix=/home/ig25
--enable-languages=c,c++,f95 : (reconfigured) ../gcc/configure
--prefix=/home/ig25 --enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.0 20041221 (experimental)



-- 


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


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