From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29243 invoked by alias); 8 Feb 2006 22:10:55 -0000 Received: (qmail 29231 invoked by uid 48); 8 Feb 2006 22:10:53 -0000 Date: Wed, 08 Feb 2006 22:10:00 -0000 Subject: [Bug fortran/26182] New: (min|max)loc with scalar mask aborts at runtime X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg00835.txt.bz2 List-Id: $ 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... -- Summary: (min|max)loc with scalar mask aborts at runtime Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26182