This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello, here comes the e-mail version of my patch posted on bugzilla: with a ChangeLog entry and the testcase. As a reminder, this patch looks for a NULL loop->to[n] before setting the temporary descriptor to check whether we are using a callee-allocated array or not. This prevents setting the descriptor with a NULL size (which segfaults). I didn't take the run-time check from the original testcase, as it is just a compilation failure. regression tested on x86_64-unknown-linux-gnu. Mikael 2008-10-30 Mikael Morin <mikael.morin@tele2.fr> PR fortran/37749 * trans-array.c (gfc_trans_create_temp_array): Check whether there is one NULL loop->to[n] before setting the descriptor with the loop bounds. 2008-10-30 Mikael Morin <mikael.morin@tele2.fr> PR fortran/37749 * gfortran.dg/vector_subscript_4.f90: New test.
Attachment:
pr37749_06.diff
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |