Open arporter opened 4 years ago
If I remove Structure_Constructor_2
from the subclass_names
of Structure_Constructor
(which seems like the right thing to do) then we get three test failures. This requires investigation.
Issue #283 and PR #285 are removing Structure_Constructor_2.
As described in #252, fparser2's matching of structure constructors seems to be somewhat broken. In particular, it has a
Structure_Constructor_2
class that refers to R457.b. However I've been unable to find any such rule in the Fortran2003 standard and because it matches "keyword = value" type patterns we end up witha=1
etc. being matched as a structure constructor.There is also an explicit test (in
test_fortran2003.py
) that "some_var(a=1, b)" matches as a structure constructor when in fact this is forbidden by C486 (R458):