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

Bug 350497

Summary: problem with locating declaration of derived data type variables
Product: [Tools] PTP Reporter: Hari Krishnan <hkrish4>
Component: Photran.Refactoring EngineAssignee: Photran Inbox <photran-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P4 CC: com-eclipse-dot-org
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 271515    
Bug Blocks:    
Attachments:
Description Flags
comments bug image
none
derived data fail none

Description Hari Krishnan CLA 2011-06-27 16:00:07 EDT
Build Identifier: Build id: I20110613-1736

We have a derived data type called CCTK_INT and CCTK_REAL and variables of their type. The photran refactor engine cannot locate the declaration of the variable and collapses then for the other variables of the direct type too. The AST is hampered I guess.
Then the next bug is F90 and CPP are not working well especially with the comments like /*@@. the outline windows shows syntaxException showing the unexpected /.

Reproducible: Always

Steps to Reproduce:
1.Just create a new derived data type in a file and use the derived data type in another file and do locate declaration.
2.Create a fortran project with cpp files and comment some lines such as /*@@ you get to see the unexpected / as syntax exception in outline window.
3.
Comment 1 Hari Krishnan CLA 2011-06-27 16:03:20 EDT
Created attachment 198681 [details]
comments bug image

The outline shows the syntax exception with this sort of comments in fortran F90 file
Comment 2 Hari Krishnan CLA 2011-06-27 16:04:00 EDT
Created attachment 198682 [details]
derived data fail

The types of CCTK_ are not recognized when asked to locate the declaration of the instances of the type.