public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/26039] New: ICE with maxval @ 2006-01-30 22:55 tkoenig at gcc dot gnu dot org 2006-01-30 23:16 ` [Bug fortran/26039] " tkoenig at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2006-01-30 22:55 UTC (permalink / raw) To: gcc-bugs 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 <URL:http://gcc.gnu.org/bugs.html> 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=<value optimized out>, 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 <return> to continue, or q <return> 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/26039] ICE with maxval 2006-01-30 22:55 [Bug fortran/26039] New: ICE with maxval tkoenig at gcc dot gnu dot org @ 2006-01-30 23:16 ` tkoenig at gcc dot gnu dot org 2006-01-31 0:06 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2006-01-30 23:16 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from tkoenig at gcc dot gnu dot org 2006-01-30 23:16 ------- Created an attachment (id=10764) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10764&action=view) patch Same problem (lack of check) with min/maxloc, product and sum, although with different results. -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |tkoenig at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26039 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/26039] ICE with maxval 2006-01-30 22:55 [Bug fortran/26039] New: ICE with maxval tkoenig at gcc dot gnu dot org 2006-01-30 23:16 ` [Bug fortran/26039] " tkoenig at gcc dot gnu dot org @ 2006-01-31 0:06 ` pinskia at gcc dot gnu dot org 2006-01-31 22:52 ` tkoenig at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-01-31 0:06 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-31 00:06 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|0000-00-00 00:00:00 |2006-01-31 00:06:54 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26039 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/26039] ICE with maxval 2006-01-30 22:55 [Bug fortran/26039] New: ICE with maxval tkoenig at gcc dot gnu dot org 2006-01-30 23:16 ` [Bug fortran/26039] " tkoenig at gcc dot gnu dot org 2006-01-31 0:06 ` pinskia at gcc dot gnu dot org @ 2006-01-31 22:52 ` tkoenig at gcc dot gnu dot org 2006-02-05 0:14 ` tkoenig at gcc dot gnu dot org 2006-02-05 0:19 ` tkoenig at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2006-01-31 22:52 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from tkoenig at gcc dot gnu dot org 2006-01-31 22:52 ------- Subject: Bug 26039 Author: tkoenig Date: Tue Jan 31 22:52:49 2006 New Revision: 110453 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110453 Log: 2006-01-31 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/26039 expr.c (gfc_check_conformance): Reorder error message to avoid plural. check.c(gfc_check_minloc_maxloc): Call gfc_check_conformance for checking arguments array and mask. (check_reduction): Likewise. 2006-01-31 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/26039 maxval_maxloc_conformance_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/maxval_maxloc_conformance_1.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/check.c trunk/gcc/fortran/expr.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26039 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/26039] ICE with maxval 2006-01-30 22:55 [Bug fortran/26039] New: ICE with maxval tkoenig at gcc dot gnu dot org ` (2 preceding siblings ...) 2006-01-31 22:52 ` tkoenig at gcc dot gnu dot org @ 2006-02-05 0:14 ` tkoenig at gcc dot gnu dot org 2006-02-05 0:19 ` tkoenig at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2006-02-05 0:14 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from tkoenig at gcc dot gnu dot org 2006-02-05 00:14 ------- Subject: Bug 26039 Author: tkoenig Date: Sun Feb 5 00:14:37 2006 New Revision: 110600 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110600 Log: 2006-02-04 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/26039 PR fortran/25046 * expr.c (gfc_check_conformance): Reorder error message to avoid plural. * check.c(gfc_check_minloc_maxloc): Call gfc_check_conformance for checking arguments array and mask. (check_reduction): Likewise. 2006-02-04 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/26039 PR fortran/25046 * maxval_maxloc_conformance_1.f90: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/maxval_maxloc_conformance_1.f90 Modified: branches/gcc-4_1-branch/gcc/fortran/ChangeLog branches/gcc-4_1-branch/gcc/fortran/check.c branches/gcc-4_1-branch/gcc/fortran/expr.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26039 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/26039] ICE with maxval 2006-01-30 22:55 [Bug fortran/26039] New: ICE with maxval tkoenig at gcc dot gnu dot org ` (3 preceding siblings ...) 2006-02-05 0:14 ` tkoenig at gcc dot gnu dot org @ 2006-02-05 0:19 ` tkoenig at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2006-02-05 0:19 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from tkoenig at gcc dot gnu dot org 2006-02-05 00:19 ------- Fixed on trunk and 4.1. Closing. -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26039 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-02-05 0:19 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-01-30 22:55 [Bug fortran/26039] New: ICE with maxval tkoenig at gcc dot gnu dot org 2006-01-30 23:16 ` [Bug fortran/26039] " tkoenig at gcc dot gnu dot org 2006-01-31 0:06 ` pinskia at gcc dot gnu dot org 2006-01-31 22:52 ` tkoenig at gcc dot gnu dot org 2006-02-05 0:14 ` tkoenig at gcc dot gnu dot org 2006-02-05 0:19 ` tkoenig at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).