Community
Participate
Working Groups
Build Identifier: 20100610-0636 In the attached cg.f90 file the declaration "integer nzloc(n)" is not parsed correctly (i.e. there is an error token) unless this line is commented out "implicit logical (a-z)" or "::" is added for the declaration (i.e. it becomes "integer :: nzloc(n)"). Reproducible: Always
Created attachment 189333 [details] Fortran source code that reveals the parser's problem.
The problem seems to be that the lexer is never exiting the IMPLICIT state, and so the "(n)" suffix on the variable declaration is being recognized as a T_X_IMPL (implicit spec) token.
This is fixed. I'll commit the change to HEAD later today/tonight.