diff --git a/src/fparser/two/Fortran2003.py b/src/fparser/two/Fortran2003.py index a714f405..4ce1fb61 100644 --- a/src/fparser/two/Fortran2003.py +++ b/src/fparser/two/Fortran2003.py @@ -5628,8 +5628,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",