Skip to content

[flang] Parse failure after spurious "Possible truncated Hollerith literal" #58732

@hawkinsp

Description

@hawkinsp

flang-new (built from LLVM commit 748922b) fails to parse
https://github.com/python-control/Slycot/blob/v0.3.5/slycot/src/MC03MD.f

$ flang-new -c slycot/src/MC03MD.f
./slycot/src/MC03MD.f:318:19: warning: Possible truncated Hollerith literal
                 DO 100 H = 1, CP2
                    ^^^^^^^^^^^^^^
error: Semantic errors in slycot/src/MC03MD.f
./slycot/src/MC03MD.f:318:30: error: No explicit type declared for 'CP2'
                 DO 100 H = 1, CP2
                               ^^^

gfortran 12.2.0 is happy with this file.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions