Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329745 - Syntax errors in outline window are not errors at all
Summary: Syntax errors in outline window are not errors at all
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Editor & Outline View (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Jeffrey Overbey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-09 04:49 EST by John CLA
Modified: 2011-03-17 12:58 EDT (History)
1 user (show)

See Also:


Attachments
testcase for preprocessor SyntaxException (191 bytes, application/octet-stream)
2010-11-09 04:51 EST, John CLA
no flags Details
testcase for SyntaxException related to the import keyword (322 bytes, application/octet-stream)
2010-11-09 04:51 EST, John CLA
no flags Details
testcase for Syntax Errors related to the select case construct (346 bytes, text/plain)
2010-11-09 04:53 EST, John CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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