Yet another missing intrinsic kind...

Also watch out for PR 30512 when fixing this.

$ cat minval-1.f90
program main
  integer(kind=1), allocatable :: a(:,:)
  integer(kind=2), allocatable :: b(:,:)
  allocate (a(0:-1,1:1))
  allocate (b(0:-1,1:1))
  print *,maxval(a,dim=1) ,minval(a,dim=1)
  print *,maxval(b,dim=1) ,minval(b,dim=1)
end program main
$ gfortran minval-1.f90
/tmp/ccOKvSb7.o: In function `MAIN__':
minval-1.f90:(.text+0x17f): undefined reference to `_gfortran_maxval_i1'
minval-1.f90:(.text+0x20e): undefined reference to `_gfortran_minval_i1'
minval-1.f90:(.text+0x2e1): undefined reference to `_gfortran_maxval_i2'
minval-1.f90:(.text+0x371): undefined reference to `_gfortran_minval_i2'
collect2: ld returned 1 exit status


-- 
           Summary: minval, maxval missing for kind=1 and kind=2
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


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

Reply via email to