Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319808 - Wrong outline view for interface block
Summary: Wrong outline view for interface block
Status: CLOSED DUPLICATE of bug 318512
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Editor & Outline View (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Photran Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-14 01:39 EDT by aria CLA
Modified: 2010-07-20 15:39 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aria CLA 2010-07-14 01:39:01 EDT
Build Identifier: 20100617-1415

This bug was discovered in Photran 6.0.0.201006142322

Bug in Outline view
- If you define several module procedures in single line inside an interface block
   Photran outline view confuses! It display the first name as a module procedure
   and the latters in a cascading form (inside the first)!
   If you even have another interface block again Photran mixed it up with the first
   interface!

   For example put the following code inside an empty Fortran source file (e.g. main.f90)
   and see the produced outline view by Photran!

   ________________________________________________
   MODULE MDMATH
    implicit none
    type myType
        integer::m, n
    end type
    interface mfc
        module procedure  prcm, prcn
    end interface mfc
    real(4) :: x, y
    interface mfc_correct
        module procedure  prcmc
        module procedure  prcnc
    end interface mfc_correct
    Integer(4), Parameter, Public  :: m=100, n=250
    Real(8), Parameter, Public     :: pi=4.d0*atan(1.d0)
END MODULE MDMATH

__________________________________________________


If you change the first interface block as follows Photran will
show the outline correctly
__________________________________________________
interface mfc
        module procedure  prcm
		module procedure  prcn
end interface mfc
__________________________________________________

Reproducible: Always

Steps to Reproduce:
1. Open a new Fortran Project
2. Create a new source file e.g. main.f90
3. Write a code containing an interface block with two or more module procedures declared in single line
Comment 1 Fernando Cucchietti CLA 2010-07-20 06:31:45 EDT
I think this is a duplicate of bug 318512
Comment 2 Jeffrey Overbey CLA 2010-07-20 15:39:26 EDT
OK, thanks.  Feel free to add yourself as a CC on that bug if you want to follow its status.

*** This bug has been marked as a duplicate of bug 318512 ***