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

Defining structure elements using DATA statements

Intel_C_Intel
Employee
446 Views
I defined a somewhat complicated structure and I use DATA statements to define each element of the structure. I am having a strange problem, as follows:

If I use a statement of the form
DATA EXPERT(1)%FREQ(2)%SIG%b1 / 0.278 /
it compiles properly and the debugger indicates that the values are being defined properly.

On the other hand, if I use "." instead of "%" in the data statement (which should be equvalent), I get the following errors:
Error: Syntax error, found '.' when expecting one of: ( :: , ; ) % . / = =>
DATA EXPERT(1).FREQ(2).SIG.b1 / 0.278 /
----------------------------^
Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( ...
DATA EXPERT(1).FREQ(2).SIG.b1 / 0.278 /

Is this a bug in the compiler, or am I doing anyhing wrong? Executable statements using the dot notation, and data statements for elements of the form EXPERT(1).FREQ(2).CASE(1).c1, seem to work OK. BTW, I am using CVF 6.6A

Thanks,

Gabriel

0 Kudos
1 Reply
Steven_L_Intel1
Employee
446 Views
Probably a bug - we've had similar issues in the past. Please report it to vf-support@compaq.com

Steve
0 Kudos
Reply