Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337623

Summary: A declaration is not parsed correctly
Product: [Tools] PTP Reporter: Stas Negara <snegara2>
Component: Photran.For Internal UseAssignee: Jeffrey Overbey <com-eclipse-dot-org>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: com-eclipse-dot-org, snegara2
Version: unspecified   
Target Milestone: 7.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fortran source code that reveals the parser's problem. none

Description Stas Negara CLA 2011-02-18 19:02:22 EST
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
Comment 1 Stas Negara CLA 2011-02-18 19:04:29 EST
Created attachment 189333 [details]
Fortran source code that reveals the parser's problem.
Comment 2 Jeffrey Overbey CLA 2011-03-17 13:11:33 EDT
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.
Comment 3 Jeffrey Overbey CLA 2011-03-17 13:15:55 EDT
This is fixed.  I'll commit the change to HEAD later today/tonight.