mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 21:56:34 +00:00

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.
8 lines
191 B
Fortran
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
|