Bug 375772 - Overloading write command throws syntax exception
Summary: Overloading write command throws syntax exception
Status: NEW
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Parser (show other bugs)
Version: 8.0.5   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Photran Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-31 09:05 EDT by Daniel Harenberg CLA
Modified: 2013-07-17 06:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Harenberg CLA 2012-03-31 09:05:47 EDT
The following code is F2003 conforming but yields an error in the view 'Fortran Analysis/Refactoring Problems' (as well as in the 'Outline' view)

type myStats
    real :: avg
contains
    procedure :: write => write_stats
end type myStats

+++ Error message +++
Description: Error parsing /[edited path]: Syntax error: Unexpected equals ([edited name].f90, line 17, column 28).  Expected one of the following: block, close, contains, abstract, class, identifier, return, interface, call, end of statement, go, print, subroutine, stop, allocatable, end, private, doubleprecision, all, implicit, if, end of input, dimension, goto, write, data, submodule, where, recursive, blockdata, select, allstop, codimension, import, use, intent, pause, backspace, endfile, selectcase, open, associate, elemental, character, nullify, rewind, bind, do, pointer, syncall, program, syncimages, syncmemory, wait, unlock, optional, double, module, read, allocate, equivalence, integer, entry, real, cycle, procedure, pure, integer constant, lock, intrinsic, format, namelist, asynchronous, critical, value, logical, forall, save, sync, inquire, assign, external, volatile, complex, protected, common, endprogram, public, enddo, contiguous, impure, enum, parameter, target, type, deallocate, function, continue, exit Resource:  Path:  Location: line -1
Comment 1 Daniel Harenberg CLA 2012-10-03 09:47:21 EDT
This bug is still present in the latest updates: Eclipse Juno, PTP 6.0.2/Photran 8.0.2
Comment 2 Daniel Harenberg CLA 2013-04-10 09:12:18 EDT
Still present in Photran 8.05
Comment 3 Daniel Harenberg CLA 2013-04-10 09:16:23 EDT
The reason I find this important is only because when there is a syntax exception one can't apply any refactorings to that file.
Comment 4 Daniel Harenberg CLA 2013-07-17 06:09:21 EDT
Upgrading to importance major (P4), because should be very easy to fix. Feel free to downgrade again.