Bug 26182 - (min|max)loc with scalar mask aborts at runtime
Summary: (min|max)loc with scalar mask aborts at runtime
Status: RESOLVED DUPLICATE of bug 20935
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Thomas Koenig
URL:
Keywords: wrong-code
Depends on: 23092
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-08 22:10 UTC by Francois-Xavier Coudert
Modified: 2006-02-25 14:26 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-02-08 22:11:01


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois-Xavier Coudert 2006-02-08 22:10:53 UTC
$ cat minmax.f90 
  real, dimension(2) :: a
  logical  :: m
  a = (/ 1.0, 2.0 /)
  m = .true.
  print *,minloc(a, m)
  !print *,minval(a, m)
end
$ gfortran -static minmax.f90 && ./a.out
a.out: ../../../../trunk/libgfortran/generated/minloc0_4_r4.c:235: mminloc0_4_r4: Assertion `((mask)->dtype >> 6) == 8' failed.
Aborted


I'm filing this with "fortran" as component since we should get rid of the scalar mask in the front-end...
Comment 1 Thomas Koenig 2006-02-25 14:26:14 UTC

*** This bug has been marked as a duplicate of 20935 ***