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

Bug 343469

Summary: function not shown in outline when surrounded by preprocessor if statement
Product: [Tools] PTP Reporter: Missing name <rohou>
Component: Photran.Editor & Outline ViewAssignee: Photran Inbox <photran-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 6.0.3   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Missing name CLA 2011-04-20 21:26:26 EDT
This is actually using Photran 6.0.6

The following code is not parsed properly: the function does not appear in the outline:

#if defined(boo)
function test(a)
	implicit none
end function
#endif
Comment 1 Missing name CLA 2011-04-22 09:38:20 EDT
Correction: this is not a bug.

I was not taking into account the fact that (I'm guessing) the outline is derived from the preprocessed source.
The solution to my problem was to define the symbol (boo in the example) in Project>Properties>Fortran General>Paths and symbols>Symbols.

Apologies for the noise.