Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser errors in #include files and unnamed programs #17

Closed
hansec opened this issue May 22, 2018 · 0 comments
Closed

Parser errors in #include files and unnamed programs #17

hansec opened this issue May 22, 2018 · 0 comments
Labels

Comments

@hansec
Copy link
Owner

hansec commented May 22, 2018

Parsing fails with visibility statements and other definitions in unnamed programs or #include files when no enclosing scope is present but is required for valid Fortran, example below.

USE test_mod ! Throws error (needs enclosing scope)
type t_test ! Throws error on following visibility statement (needs enclosing scope)
  integer i
end type t_test

INTERFACE ! Does not throw error but needs enclosing scope
 SUBROUTINE test_sub()
 END SUBROUTINE test_sub
END INTERFACE

public :: t_test ! Throws error when matching to definition
@hansec hansec added the bug label May 22, 2018
@hansec hansec mentioned this issue May 22, 2018
@hansec hansec closed this as completed in 8f6d29e May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant