- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Short and sweet.
PRINT "(A)", 'There is something ' & & // 'wrong with this statement.' END
>ifort /c /check:all /warn:all /standard-semantics /stand "2014-08-27 AFewTooMany.f90" Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.0.108 Build 20140726 Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
>
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I could interpret the standard as saying this is legal. The standard says:
If a noncharacter context is to be continued, an "&" shall be the last nonblank character on the line, or the last nonblank character before an "!".
Well, the last nonblank character is "&" - just not the same one that started continuation. I don't see any words in the standard to prohibit more than one &. Amusing. I will have to ask the committee what they think.

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