[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-10-15 Thread tkoenig at gcc dot gnu dot org
--- Comment #11 from tkoenig at gcc dot gnu dot org 2007-10-15 18:23 --- Subject: Bug 31726 Author: tkoenig Date: Mon Oct 15 18:23:39 2007 New Revision: 129365 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129365 Log: 2007-10-25 Thomas Koenig <[EMAIL PROTECTED]>

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-06-24 Thread pault at gcc dot gnu dot org
--- Comment #10 from pault at gcc dot gnu dot org 2007-06-24 11:05 --- Fixed on trunk Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-06-24 Thread pault at gcc dot gnu dot org
--- Comment #9 from pault at gcc dot gnu dot org 2007-06-24 11:04 --- Subject: Bug 31726 Author: pault Date: Sun Jun 24 11:04:02 2007 New Revision: 125983 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125983 Log: 2007-06-24 Paul Thomas <[EMAIL PROTECTED]> PR fortran/

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-06-21 Thread patchapp at dberlin dot org
--- Comment #8 from patchapp at dberlin dot org 2007-06-22 02:05 --- Subject: Bug number PR31726 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01583.html -- http://gcc.gnu.org/bugzilla/sh

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-06-21 Thread pault at gcc dot gnu dot org
--- Comment #7 from pault at gcc dot gnu dot org 2007-06-21 18:14 --- This fixes Tobias' testcase of comment #4. Note that it is a diff relative to the patch for 32298. I'll resubmit the latter in this new form. Paul Index: gcc/fortran/trans-intrinsic.c ==

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-04-27 Thread tkoenig at gcc dot gnu dot org
--- Comment #6 from tkoenig at gcc dot gnu dot org 2007-04-27 21:00 --- Created an attachment (id=13457) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13457&action=view) Test case for the library functions The library function appears to be ok. Here is the test case (semi-automat

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-04-27 Thread tkoenig at gcc dot gnu dot org
--- Comment #5 from tkoenig at gcc dot gnu dot org 2007-04-27 20:16 --- > One should also check the library version of MIN/MAXLOC. I'll do that. This is an area that I am working on anyway (PR 30694). Thanks for providing the test case, btw. It is quite thorough :-) -- tkoenig a

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-04-27 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2007-04-27 17:42 --- Created an attachment (id=13456) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13456&action=view) Test case Writing test cases first helps! I need go back to the drawing board as the pos = pos + 1 is not added

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-04-27 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-04-27 15:59 --- Patch. Dump looks ok. Needs some testcases plus checking of the library version. Index: trans-intrinsic.c === --- trans-intrinsic.c (Revision 124216)

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array (F2003 only)

2007-04-27 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-04-27 13:16 --- The problem is: if(0) { /* find index */ else { pos.1 = 0; } D.1356 = (int4) (() pos.1 + 1); As C and the internal tree have array indexes starting at one, the final index has to b

[Bug libfortran/31726] minloc/maxloc: wrong results with empty array

2007-04-27 Thread dfranke at gcc dot gnu dot org
--- Comment #1 from dfranke at gcc dot gnu dot org 2007-04-27 11:22 --- MINVAL/MAXVAL are ok. F2003, 13.7.79, MINVAL, Result Value: Case (i): [...] If ARRAY has size zero and type integer or real, the result has the value of the positive number of the largest magnitude