This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33664] crash on invalid program
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2007 11:14:40 -0000
- Subject: [Bug fortran/33664] crash on invalid program
- References: <bug-33664-15061@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pault at gcc dot gnu dot org 2007-10-06 11:14 -------
This fails in execution, for the same reason:
call func_1((/1,2/), 1)
contains
subroutine func_1(u,n)
integer :: n, u(n(1))
print *, u
end subroutine
end
n is determined to be a function and so must be pure, since it is in a
specification expression.
Fixing this, causes char_result_7.f90 to fail. g95 and lahey agree that this
is wrong. I'll submit something soon... ie. just as soon as it has stopped
regtesting.
Cheers
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-10-05 11:15:04 |2007-10-06 11:14:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33664