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.
29282 Discussions

'Invalid structure member' in CVF (IVF?)

Thomas_L_2
Beginner
932 Views

I ran into a weird error in CVF - not sure if it affects IVF as well. I have data structures involving derived types with derived type components. I was having compilation problems with a public derived type not being defined in parts of the program where it should be accessible. When I look at the derived type components with Watch Variable, I get "Syntax Error" for a value.

When I explicitly enter the sub-component into the watch window, I get a value of "Invalid structure member '[variable name]'.

What the heck is going on, and what is a "invalid structure member"? Does IVF have similar messages?

Strangely, I have a very similar data structure that seems to work fine. When I port the code over to Salford FTN95, it has no problems.

TPL

0 Kudos
3 Replies
Steven_L_Intel1
Employee
932 Views
I'd need to see an example. The error means that the Fortran expression evaluator is unable to understand the information supplied by the compiler for your structure.
0 Kudos
Thomas_L_2
Beginner
932 Views

Not sure what happened. I got a clean compile on several other compilers after copying the source over (including Intel Visual Fortran v9.1.032 on Linux, g95, PGI, and Absoft 8.2). After deleting the offending sub-structure, and trying a few things, and typing it back in, it started working all of a sudden.

Go figure....

0 Kudos
Steven_L_Intel1
Employee
932 Views
The problem isn't really related to the compiler's support for syntax, it has to do with the embedded debug info the compiler generates for the benefit of the debugger. I've seen errors in this support many times over the years and over many compilers.
0 Kudos
Reply