[Bug fortran/44693] Missed error for invalid SUM
--- Comment #5 from burnus at gcc dot gnu dot org 2010-07-08 07:27 --- Thanks for the bug fix! For completeness, the commit was: Author: tkoenig Date: Tue Jul 6 19:48:58 2010 New Revision: 161884 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161884 Log: 2010-07-06 Thomas Koenig tkoe...@gcc.gnu.org PR fortran/PR44693 * check.c (dim_rank_check): Also check intrinsic functions. Adjust permissible rank for functions which reduce the rank of their argument. Spread is an exception, where DIM can be one larger than the rank of array. 2010-07-06 Thomas Koenig tkoe...@gcc.gnu.org PR fortran/PR44693 * gfortran.dg/dim_range_1.f90: New test. * gfortran.dg/minmaxloc_4.f90: Remove invalid test. Added: trunk/gcc/testsuite/gfortran.dg/dim_range_1.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/check.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/minmaxloc_4.f90 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44693
[Bug fortran/44693] Missed error for invalid SUM
--- Comment #4 from tkoenig at gcc dot gnu dot org 2010-07-08 05:53 --- Fixed on trunk. 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=44693
[Bug fortran/44693] Missed error for invalid SUM
--- Comment #2 from tkoenig at gcc dot gnu dot org 2010-07-04 09:00 --- Created an attachment (id=21080) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21080action=view) proposed patch (causes unrelated breakage) This patch causes a segfault in dynamic_dispatch_6.f03, although the code path is never taken. This looks a lot like a compiler error exposed by this patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44693
[Bug fortran/44693] Missed error for invalid SUM
--- Comment #3 from tkoenig at gcc dot gnu dot org 2010-07-04 09:20 --- It seems the dynamic_dispatch_6.f03 is independent of this patch. I'll submit this patch anyway. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44693
[Bug fortran/44693] Missed error for invalid SUM
--- Comment #1 from tkoenig at gcc dot gnu dot org 2010-07-03 17:08 --- Confirmed. -- 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 Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2010-07-03 17:08:41 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44693