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

A bug in ifort 11.1.067? Variable 'class' is messed up with CLASS definition

bruceibm
Beginner
901 Views
We have fortran codes with variables like 'class0', 'class1' and 'classes'. It was always OK with ifort until the latest release of ifort 11.1.067.

When I compile the code with the new ifort, it complains about the wrong definition of CLASS. The new ifort takes all the names begining with 'class' as an object.

Could this be fixed in the next release? Otherwise a lot of code need to be re-written.

Here are some typical error messages from the latest release of ifort:
--------
error #5082: Syntax error, found INTEGER_CONSTANT '0' when expecting one of: ( % : . = =>
class0(nhybrid) = atmcls(it0)
xtalfit.f(398): error #5082: Syntax error, found IDENTIFIER 'ES' when expecting one of: ( % : . = =>
classes(i,ixtal) = class(i)
-----------------^
xtalfit.f(398): error #6535: This variable or component must be of a derived or structure type [CLASS]
classes(i,ixtal) = class(i)
------------^

------------------

Thx!
0 Kudos
1 Solution
Steven_L_Intel1
Employee
901 Views

That's a Linux version number. The current Windows version is 048. This bug is fixed in Update 3, which should be out in the next week.

View solution in original post

0 Kudos
5 Replies
Steven_L_Intel1
Employee
902 Views

That's a Linux version number. The current Windows version is 048. This bug is fixed in Update 3, which should be out in the next week.
0 Kudos
bruceibm
Beginner
901 Views

That's a Linux version number. The current Windows version is 048. This bug is fixed in Update 3, which should be out in the next week.

I am using Snow Leopard. So next week this problem will be gone? Thanks! I will wait for this.
0 Kudos
Steven_L_Intel1
Employee
901 Views
Oh, Mac. Ok - we have a separate forum for Mac and Linux. Yes, I hope that this bug should go away with an update soon.
0 Kudos
bruceibm
Beginner
901 Views
Oh, Mac. Ok - we have a separate forum for Mac and Linux. Yes, I hope that this bug should go away with an update soon.

Oh, Sorry, I did not notice this is a forum for Windows. I should post there. Thanks!
0 Kudos
Steven_L_Intel1
Employee
901 Views

Next time...
0 Kudos
Reply