Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312860 - Photran does not recognize ISO_xxx intrinsic modules
Summary: Photran does not recognize ISO_xxx intrinsic modules
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Refactoring Engine (show other bugs)
Version: 7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P2 normal (vote)
Target Milestone: 7.0.4   Edit
Assignee: Jeffrey Overbey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 02:04 EDT by Jeffrey Overbey CLA
Modified: 2011-11-06 00:49 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Overbey CLA 2010-05-14 02:04:00 EDT
The intrinsic ISO_C_BINDING module was introduced in Fortran 2003, but Photran complains that "There are no files that export a module named iso_c_binding"

An example is in the GTK demo project:

ID: 7757 Description: There are no files that export a module named iso_c_binding Resource: gtk.f03 Path: gtk.f03 Location: line -1 Error Type: org.eclipse.photran.core.vpg.errorMarker
Comment 1 Jeffrey Overbey CLA 2010-05-16 15:09:19 EDT
I have added a line to suppress the error messages in the Fortran Analysis/Refactoring Problems view.  However, Photran should be able to (1) display the entities in this (intrinsic) module in content assist, and (2) it should recognize them as intrinsics and refuse to Rename them on that ground, not because it can't find a definition for them.
Comment 2 Jeffrey Overbey CLA 2011-11-04 12:32:44 EDT
I have committed a change to ptp_5_0 and master (Git) which adds the ISO_C_BINDING and ISO_FORTRAN_ENV intrinsics so they are recognized during name binding resolution and are added to the list of content assist proposals.  The IEEE intrinsics are not handled yet.
Comment 3 Jeffrey Overbey CLA 2011-11-04 12:36:04 EDT
This also corrects another problem: Introduce Implicit None would treat c_int, c_float, etc. as implicit variables and add declarations for them
Comment 4 Jeffrey Overbey CLA 2011-11-06 00:49:58 EDT
The IEEE arithmetic intrinsic modules have been filed separately under Bug 362978.  Closing this bug for 7.0.4 and renaming it to refer exclusively to ISO_xxx intrinsic modules.