Peter Klausler 0684db30a1
[flang] A nested STRUCTURE must declare entities (#99379)
When a DEC legacy STRUCTURE definition appears within another, its
STRUCTURE statement must also declare some components of the enclosing
structure.

Fixes https://github.com/llvm/llvm-project/issues/99288.
2024-07-18 16:32:24 -07:00

8 lines
191 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1
structure /s/
!ERROR: entity declarations are required on a nested structure
structure /nested/
end structure
end structure
end