This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30407] Elemental functions in WHERE assignments wrongly rejected
- 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: 17 Jan 2007 14:11:46 -0000
- Subject: [Bug fortran/30407] Elemental functions in WHERE assignments wrongly rejected
- References: <bug-30407-12313@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-01-17 14:11 -------
> > Expected: As elemental procedures are also allowed, a "case EXEC_ASSIGN_CALL:"
> > has to be added.
This is the easy bit... You then get:
$ /irun/bin/gfortran pr30407.f90
pr30407.f90: In function 'MAIN__':
pr30407.f90:79: internal compiler error: in gfc_trans_where_2, at
fortran/trans-
stmt.c:3260
because none of the equipment is in place to do the subroutine call. This was
easy for FORALL because the masking is done externally to the assignment. The
WHERE construct is a totally different kettle of fish and it will take a while
to deal with it.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30407