diff --git a/src/fparser/two/Fortran2003.py b/src/fparser/two/Fortran2003.py index 9919900d..3ce0ad3c 100644 --- a/src/fparser/two/Fortran2003.py +++ b/src/fparser/two/Fortran2003.py @@ -5644,8 +5644,10 @@ class `Base` matches rules in list order). "Constant", "Designator", "Array_Constructor", - "Structure_Constructor", + # Function_Reference is purposely above Structure_Constructure so if they + # can not be disambiguated, they will be matched as Function_Reference "Function_Reference", + "Structure_Constructor", "Type_Param_Inquiry", "Type_Param_Name", "Parenthesis",