- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've noticed that both g77 and the AIX Fortran compiler allow all Ansi C Escape Sequences to be in Fortran Character Strings. This is not the cases with the Intel Compiler. I know there is a convention to create C strings so that some escape sequences are valid ( 'test
'C ).
I don't see anything in my reading of the standards that says Fortran should allow escape sequences. Am I correct in assuming that the behavior of g77 and AIX Fortran is non-standard and perhaps the product of the code being actually converted to C during compilation?
Thanks!
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One could make a good argumnent that these implementations are non-standard, though since backslash isn't in the "Fortran character set", what it does isn't strictly specified by the standard.
You can get that behavior by adding -assume bacc
You can get that behavior by adding -assume bacc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks once again for the quick response and valuable information.
I think you had a typo and means to put -assume bscc
Message Edited by cjosefy on 06-17-2005 12:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes - bscc. Sorry.

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