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: At present, use associated or imported kind parameters that are referenced in a function declaration cause an error because they outrage gfc_match_init_expr. The proposed patch fixes this by looking for a name, which is not allowed in either the context of an interface or CONTAINS, setting KIND to -1, as a flag, and bailing out. This is tested after each IMPORT and USE statement and the kind expression matched over again. The moment that the parameter is either imported or use associated, the match will succeed and a viable kind value will be added to the function typespec. It should be noted that only a parameter value can be matched in this patch. More complicated expressions still fail; furthermore, I have not seen a satisfactory way of dealing with this yet but am open to suggestions. However, this patch is already a significant improvement. The testcase encloses those of the contributors. The ChangeLog entries are obvious but I have not had a moment to write them today. Regtested on Cygwin_NT/amd64 - OK for trunk? Paul
Attachment:
pr31229.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |