This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37749] ICE on array section with vector subscript
- From: "mikael dot morin at tele2 dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2008 21:06:10 -0000
- Subject: [Bug fortran/37749] ICE on array section with vector subscript
- References: <bug-37749-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from mikael dot morin at tele2 dot fr 2008-10-29 21:06 -------
Created an attachment (id=16585)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16585&action=view)
proposed patch, regression tested
This patch solves the problem by going through all the loop dimensions in
gfc_trans_create_temp_array to look for a NULL loop->to before the actual loop
execution and set size to NULL if one is found (it solves conditions (4) and
(5)).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37749