Skip to content

ROSE: Error is assignment of character array #93

Open
@dagit

Description

@dagit

Converted from SourceForge issue 3409675, submitted by rasmussn

ROSE spews extra output (and sometimes aborts) during a character by character array assignment, e.g.,

     character(16) :: array(1)
     do c = 1, 16
         array(1)(c:c) = val_array(c)
     end do

--------ROSE OUTPUT---------
resetSourcePosition: sourceLocatedNode = 0x1199e4230 = SgPntrArrRefExp = array_ref_of_array_ref_of_var_ref_of_array_at_expr_list_exp_integer_value_exp_1_at_subscript_exp_var_ref_of_c_var_ref_of_c_integer_value_exp_1
Inside of Sg_File_Info::display(get_filenameString() == NULL_FILE)
isTransformation = false
isCompilerGenerated = false
isOutputInCodeGeneration = true (output in code generator)
isShared = false
isFrontendSpecific = false
isSourcePositionUnavailableInFrontend = true (source position unavailable in frontend)
isCommentOrDirective = false
isToken = false
filename = NULL_FILE
line = 0 column = 0
resetSourcePosition: sourceLocatedNode = 0x1199ff750 = SgAssignOp = undefined_expression_name
Inside of Sg_File_Info::display(get_filenameString() == NULL_FILE)
isTransformation = false
isCompilerGenerated = false
isOutputInCodeGeneration = true (output in code generator)
isShared = false
isFrontendSpecific = false
isSourcePositionUnavailableInFrontend = true (source position unavailable in frontend)
isCommentOrDirective = false
isToken = false
filename = NULL_FILE
line = 0 column = 0
Error: (endOfConstruct == startOfConstruct) lastStatement->get_endOfConstruct()->get_line() = 0
Error: (endOfConstruct == startOfConstruct) astScopeStack.front()->get_endOfConstruct()->get_line() = 0
Assertion failed: (astScopeStack.front()->get_endOfConstruct()->get_line() != astScopeStack.front()->get_startOfConstruct()->get_line()), function c_action_block, file ../../../../rose-latest/src/frontend/OpenFortranParser_SAGE_Connection/FortranParserActionROSE.C, line 10127.
Abort trap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions