Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

This compiles??

rahzan
New Contributor I
422 Views
This line compiles without error in cvf 6.6.
Wutzit mean?

logical notTraded
notTraded=+++.true.

Tim
0 Kudos
1 Reply
Steven_L_Intel1
Employee
422 Views
It compiles, but is non-standard.

The "+++" is essentially ignored. The manual explains how consecutive unary operators are interpreted.

Now, since + is an arithmetic operator, the .true. is theoretically converted to integer -1, then assigned to notTraded, but this is all semantics - the end result is as if you had written:

notTraded=.true.

Steve
0 Kudos
Reply