Skip to content

Bug matching ALL containing a boolean expression in parentheses #466

@arporter

Description

@arporter

fparser2 crashes when parsing:

    integer :: i1, i2
    logical :: equal, var1, var2
    equal = all( (/ var1, var2, (i1==i2) /) )

with

  File "fparser/src/fparser/two/Fortran2003.py", line 2956, in match
    assert j != -1

If the parentheses around i1==i2 are removed then the parse continues without error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions