Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use association of operators not captured in SymbolTable. #379

Open
arporter opened this issue Sep 23, 2022 · 1 comment
Open

Use association of operators not captured in SymbolTable. #379

arporter opened this issue Sep 23, 2022 · 1 comment
Assignees
Labels

Comments

@arporter
Copy link
Member

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.

@arporter arporter added the bug label Sep 23, 2022
@arporter arporter self-assigned this Sep 23, 2022
@arporter arporter changed the title Fail to parse use associate of operators Fail to parse use association of operators Sep 23, 2022
@arporter arporter changed the title Fail to parse use association of operators Use association of operators not captured in SymbolTable. Sep 26, 2022
@arporter
Copy link
Member Author

#380 will fix the crash but won't add support for operators to the symbol table so this Issue remains to be done.

sergisiso added a commit that referenced this issue Oct 18, 2022
(Towards #379) ensure symbol table cleanly ignores operators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant