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] |
:ADDPATCH fortran: Here's a patch to fix PR 24503. The problem is that, for fake result character variables of non-connstant length, gfc_finish_var_decl will be called. This function, however, is apperantly not written with fake result variables in mind. Two changes were needed: Add the decl to the current function, rather than to the parent, and make an assertion accept fake result variables. Bubblestrapped and tested on mainline, Linux/x86. Ok for mainline? Ok for 4.0 when *strapping and testing on 4.0 finishes? Erik 2005-10-25 Erik Edelmann <eedelman@gcc.gnu.org> PR fortran/24503 * trans-decl.c (gfc_finish_var_decl): Add decl to the current function, rather than the parent. Make assertion accept fake result variables. 2005-10-25 Erik Edelmann <eedelman@gcc.gnu.org> PR fortran/24503 * gfortran.dg/char_function_1.f90: New.
Attachment:
24503.diff
Description: Text document
Attachment:
char_function_1.f90
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |