Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29264 Discussions

Variables whose names start with "CLASS" cause compiler errors

Chris_Payne
Beginner
433 Views
Here is the source for a test case

program x
integer*4 classic_bug

classic_bug = 4
write (6,*) classic_bug
end

Using command line ifort -f77rtl -save -vms -align norecords -warn noalign -extend-source x.for
Version 11.1.056 on Linux, returns the following compiler errors

x.for(4): error #5082: Syntax error, found IDENTIFIER 'IC_BUG' when expecting one of: ( % : . = =>
classic_bug = 4
-------------^
x.for(4): error #6535: This variable or component must be of a derived or structure type [CLASS]
classic_bug = 4
--------^
x.for(4): error #6460: This is not a field name that is defined in the encompassing structure. [IC_BUG]
classic_bug = 4
-------------^
compilation aborted for x.for (code 1)
0 Kudos
1 Solution
TimP
Honored Contributor III
433 Views
The bug was discussed here
http://software.intel.com/en-us/forums/showthread.php?t=68600
with the original poster's reference to "Fortran 77" referring to the fact that the bug was exhibited only for fixed source form. It is supposed to be present only in that one version, and corrected in 11.1.059.

View solution in original post

0 Kudos
1 Reply
TimP
Honored Contributor III
434 Views
The bug was discussed here
http://software.intel.com/en-us/forums/showthread.php?t=68600
with the original poster's reference to "Fortran 77" referring to the fact that the bug was exhibited only for fixed source form. It is supposed to be present only in that one version, and corrected in 11.1.059.
0 Kudos
Reply