fparser
fparser copied to clipboard
Use association of operators not captured in SymbolTable.
Processing some LFRic code, fparser fails:
File "/home/kbc59144/Projects/fparser/src/fparser/two/Fortran2003.py", line 10307, in match
raise InternalError(
fparser.two.utils.InternalError: 'An Only_List can contain only Name or Rename entries but found 'Generic_Spec' when matching 'use xios, only: xios_get_field_attr, xios_get_axis_attr, xios_get_file_attr, xios_recv_field, xios_date, xios_duration, xios_get_current_date, xios_get_time_origin, xios_get_year_length_in_seconds, xios_date_convert_to_seconds, operator(-), operator(+), operator(<), operator(<=)''. Please report this to the authors.
where the problem is that we have use ios, only: ..., operator(-) and the changes I've made recently to handle use association don't support that form.
#380 will fix the crash but won't add support for operators to the symbol table so this Issue remains to be done.