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

missing mandatory blanks in f18 demo #1

Closed
schauveau opened this issue Feb 1, 2018 · 2 comments
Closed

missing mandatory blanks in f18 demo #1

schauveau opened this issue Feb 1, 2018 · 2 comments

Comments

@schauveau
Copy link
Contributor

I noticed that the fortran parser is treating most (all?) blanks as optional between adjacent keywords.
The following source code is accepted as valid even though each line with a 'hoops' comment should be illegal:

subroutinefoo(a) ! hoops 
  class(*) :: a
  selecttype (a)    ! hoops 
     typeis (integer)  ! hoops 
        print *, a 
     typeis (real)  ! hoops
        print *, a 
  end select
endsubroutinefoo ! hoops

Reminder: See also p53 table 6.2 "Adjacent keywords where separating blanks are optional" in F2015 standard draft

@klausler
Copy link
Collaborator

klausler commented Feb 1, 2018

Yes, thanks, this is a known problem.

@klausler klausler self-assigned this Mar 30, 2018
@klausler
Copy link
Collaborator

Fixed in pmk-spaces branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants