Skip to content

F_Front: unable to assign a ponter to a substring of a target string #167

Description

@skosukhin

I assume that the following is legal Fortran:

MODULE A
CONTAINS
  SUBROUTINE foo()
    character(len=256), target :: t
    character(:), pointer :: p

    p => t(1:2)
  END SUBROUTINE foo
END MODULE A

However, F_Front fails to process it with the following error:

"a.f90", line 10: compiler error: outx_pointerAssignStatement: Invalid argument, expected F_VAR or ARRAY_REF or F95_MEMBER_REF of FUNCTION_CALL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions