This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17283] UNPACK issues
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2004 16:52:47 -0000
- Subject: [Bug fortran/17283] UNPACK issues
- References: <20040902123043.17283.paul.richard.thomas@cea.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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