From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16786 invoked by alias); 30 Jan 2006 22:55:19 -0000 Received: (qmail 16772 invoked by uid 48); 30 Jan 2006 22:55:15 -0000 Date: Mon, 30 Jan 2006 22:55:00 -0000 Subject: [Bug fortran/26039] New: ICE with maxval X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tkoenig 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-01/txt/msg03424.txt.bz2 List-Id: I'm onto this. $ cat maxval.f90 program main integer, dimension(2) :: a logical, dimension(2,1) :: lo a = (/ 1, 2 /) lo = .true. print *,maxval(a,mask=lo) end program main $ gfortran maxval.f90 maxval.f90: In function 'MAIN__': maxval.f90:5: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ gdb ~/libexec/gcc/i686-pc-linux-gnu/4.2.0/f951 GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) r maxval.f90 Starting program: /home/ig25/libexec/gcc/i686-pc-linux-gnu/4.2.0/f951 maxval.f90 MAIN__ Program received signal SIGSEGV, Segmentation fault. 0x080a7066 in gfc_conv_loop_setup (loop=0xbfb063b4) at ../../../gcc/t2/gcc/fortran/trans-array.c:2758 2758 if (cshape && INTEGER_CST_P (info->start[n]) (gdb) bt #0 0x080a7066 in gfc_conv_loop_setup (loop=0xbfb063b4) at ../../../gcc/t2/gcc/fortran/trans-array.c:2758 #1 0x080bb11b in gfc_conv_intrinsic_minmaxval (se=0xbfb06bd4, expr=, op=101) at ../../../gcc/t2/gcc/fortran/trans-intrinsic.c:1781 #2 0x080b60ff in gfc_conv_function_expr (se=0xbfb06bd4, expr=0x0) at ../../../gcc/t2/gcc/fortran/trans-expr.c:2251 #3 0x080b25f9 in gfc_conv_expr (se=0xbfb06bd4, expr=0x86df098) at ../../../gcc/t2/gcc/fortran/trans-expr.c:2614 #4 0x080b3c1c in gfc_conv_expr_reference (se=0xbfb06bd4, expr=0x86de5c0) at ../../../gcc/t2/gcc/fortran/trans-expr.c:2724 #5 0x080bde4f in gfc_trans_transfer (code=0x86df440) at ../../../gcc/t2/gcc/fortran/trans-io.c:1835 #6 0x0809fdb1 in gfc_trans_code (code=0x86df440) at ../../../gcc/t2/gcc/fortran/trans.c:579 #7 0x080bfdff in build_dt (function=0xb7b05000, code=0x86df500) at ../../../gcc/t2/gcc/fortran/trans-io.c:1478 #8 0x0809fd8f in gfc_trans_code (code=0x86df500) at ../../../gcc/t2/gcc/fortran/trans.c:555 #9 0x080b0672 in gfc_generate_function_code (ns=0x86de120) at ../../../gcc/t2/gcc/fortran/trans-decl.c:2639 #10 0x08082d6d in gfc_parse_file () at ../../../gcc/t2/gcc/fortran/parse.c:2686 #11 0x0809efad in gfc_be_parse_file (set_yydebug=0) at ../../../gcc/t2/gcc/fortran/f95-lang.c:287 #12 0x0839ba3a in toplev_main (argc=2, argv=0xbfb06eb4) ---Type to continue, or q to quit--- at ../../../gcc/t2/gcc/toplev.c:990 #13 0x080ca5ef in main (argc=2, argv=0x1) at ../../../gcc/t2/gcc/main.c:35 (gdb) q The program is running. Exit anyway? (y or n) Please answer y or n. The program is running. Exit anyway? (y or n) y $ gfortran -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../../gcc/t2/configure --prefix=/home/ig25 --enable-languages=c,fortran Thread model: posix gcc version 4.2.0 20060127 (experimental) -- Summary: ICE with maxval Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: fortran 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=26039