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

Bug 329745

Summary: Syntax errors in outline window are not errors at all
Product: [Tools] PTP Reporter: John <jwmwalrus>
Component: Photran.Editor & Outline ViewAssignee: Jeffrey Overbey <com-eclipse-dot-org>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: com-eclipse-dot-org
Version: unspecified   
Target Milestone: 7.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
testcase for preprocessor SyntaxException
none
testcase for SyntaxException related to the import keyword
none
testcase for Syntax Errors related to the select case construct none

Description John CLA 2010-11-09 04:49:33 EST
Build Identifier: 20100917-0705

In the following two cases, the outline view shows syntax errors for what I believe is just a style preference (since both gfortran and ifort accept those line without problem):

* Spaces between the # and the identifier (e.g., if, else) in a (C-like) preprocessor line 

* Using import without a list of imported items

In the third case, the outline view flags syntax errors for reasons unknown to me.

Reproducible: Always

Steps to Reproduce:
In all the cases, adding the (attached) source to a Fortran project will flag the syntax errors.
Comment 1 John CLA 2010-11-09 04:51:07 EST
Created attachment 182688 [details]
testcase for preprocessor SyntaxException
Comment 2 John CLA 2010-11-09 04:51:52 EST
Created attachment 182689 [details]
testcase for SyntaxException related to the import keyword
Comment 3 John CLA 2010-11-09 04:53:48 EST
Created attachment 182690 [details]
testcase for Syntax Errors related to the select case construct
Comment 4 Jeffrey Overbey CLA 2011-03-17 12:58:39 EDT
Thanks for the bug report.  You might be the first person to report a Fortran 2003-related bug.  :-)  Fixes for these will appear in Photran 7.0.

Fixed in HEAD 3/17