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

camfort complains with double colon use statement #116

Open
wadudmiah opened this issue Apr 16, 2018 · 1 comment
Open

camfort complains with double colon use statement #116

wadudmiah opened this issue Apr 16, 2018 · 1 comment

Comments

@wadudmiah
Copy link

Camfort complains with the code which is valid Fortran:
use :: Types_mod
with the error message:

$ camfort stencils-check Solver_mod.f90 
Checking stencil specs for 'Solver_mod.f90'
camfort: fortran-src: user error (4:9: Solver_mod.f90: parsing failed. Last parsed token: TDoubleColon (4:7)-(4:8).)
@jme52
Copy link

jme52 commented May 1, 2018

Hi Wadud,

I am not part of the camfort team, but I think that this issue should rather be reported to the fortran-src parser (https://github.com/camfort/fortran-src/, developed by the same team) issue tracker.

In any case, note that the possibility of a double colon between the use keyword and the module name was introduced in the 2003 standard [1], which is a version of the Fortran standard that camfort and fortran-src do not attempt to support yet.

[1] See R1107 of Fortran 95 vs. R1109 of Fortran 2003. Actually, it was introduced in the Floating-Point Exception Handling Technical Report, ISO/IEC TR 15580, published between both standards (see absolute page 13 in https://wg5-fortran.org/N1351-N1400/N1378.pdf).

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