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] |
Do a grep on GFC_TYPE_ARRAY_LBOUND and GFC_TYPE_ARRAY_UBOUND. You will find that if the former is not set then the latter is not. However, if this were not to be the case, it would make more sense to set LBOUND from UBOUND, rather than to do an assert. I could put that branch in, if you like.In this case, trans-types.c(gfc_get_nodesc_array_type) declines to set GFC_TYPE_ARRAY_LBOUND or GFC_TYPE_ARRAY_UBOUND and gfc_set_interface_mapping_bounds. The solution is to use the descriptor values for both bounds. The testcase is that provided by the reporter.
I would just like confirmation that, if GFC_TYPE_ARRAY_LBOUND is not set, then GFC_TYPE_ARRAY_UBOUND is garanteed not to be set either. Perhaps an assert in the code would help?
Thanks - I will commit on Saturday or Sunday, when I am back at base.
OK.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |