This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48352] [4.7 Regression] segfault in fortran/frontend-passes.c
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Mar 2011 18:31:35 +0000
- Subject: [Bug fortran/48352] [4.7 Regression] segfault in fortran/frontend-passes.c
- Auto-submitted: auto-generated
- References: <bug-48352-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48352
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |tkoenig at gcc dot gnu.org
|gnu.org |
--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-03-31 18:31:22 UTC ---
(In reply to comment #5)
> reduced:
>
> INTEGER, DIMENSION(:), POINTER :: a
> DO I=1,MIN(SIZE(a),SIZE(a))
> ENDDO
> END
Thanks, Joost.
Slightly more reduced test case (from the point of
stepping through the code):
interface
pure integer function f()
end function f
end interface
DO I=1,min(f(),f())
ENDDO
END
Somehow, the insertion of the statement with the extra variable doesn't
work for DO loops.