- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Group,
Below is a code fragment from a module I'm trying to compile withIntel Visual Fortran Composer XE for Windows (just purchased on December 8).
type, public :: Status_Type
contains ! the following type-bound procedures:
procedure :: formatted_unit_WRITE
generic :: write(formatted) => formatted_unit_WRITE
end type Status_Type
Here are the compiler messages:
error #5082: Syntax error, found IDENTIFIER 'FORMATTED' when expecting one of: * .NOT. . + - /) ** / // .LT. < .LE. <= .EQ. == .NE. /= .GT. > ...
generic :: write(formatted) => formatted_unit_WRITE
error #6268: The keyword ASSIGNMENT or OPERATOR was expected in this context [WRITE]
generic :: write(formatted) => formatted_unit_WRITE
I'm new to Fortran so there may be syntax errors in the above code fragment. Could someone kindly point me in the right direction. The code fragment is based on an example in a Fortran book (Fortran 95/2003 Explained) I'm reading.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Amazingly fast response ! Thanks much!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page