Skip to content

README documentation bug: incorrect variable declaration placement #945

@krystophny

Description

@krystophny

DEFECT: README shows incorrect Fortran variable declaration placement causing compilation failure

REPRODUCTION:

  1. Copy README object-oriented API example exactly
  2. Variable declaration after executable statements: type(figure_t) :: fig
  3. Compilation fails: 'Unexpected data declaration statement'

EVIDENCE:

  • README line 49: Shows type(figure_t) :: fig after executable code
  • Fortran requires all declarations before executable statements
  • Code compiles when declaration moved to top of program

USER IMPACT: HIGH - New users copying README examples get compilation failures
ROOT CAUSE: Fortran syntax error in documentation
SCOPE: README.md documentation accuracy

SOLUTION: Move all variable declarations to declaration section of program

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