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

Slash in format statements #16

Open
ppenzin opened this issue Aug 6, 2018 · 0 comments
Open

Slash in format statements #16

ppenzin opened this issue Aug 6, 2018 · 0 comments

Comments

@ppenzin
Copy link
Contributor

ppenzin commented Aug 6, 2018

Need to recognize slashes in format code. Example:

      write(*,1)
    1 format(' Double newline'//
     $       ' Followed by single newline'/
     $       ' Followed by another one'/
     $       ' A double again'//
     $       ' The end'/)
      stop
      end

Currently fort produces the following:

$ fort -fsyntax-only slash.f
../test/Sema/slash.f:3:31: error: expected ')'
    1 format(' Double newline'//
                              ^
../test/Sema/slash.f:2:15: error: use of undeclared statement label '1'
      write(*,1)
              ^
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

1 participant