Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Ankündigungen
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.
29285 Diskussionen

Variables/arguments declared with class don't show correctly in the debugger

thomas_boehme
Neuer Beitragender II
1.026Aufrufe

The content of types that are declared using "class" instead of "type" (e.g. in type bound procedures) does notshow correctly in the debugger (VS2008).

In the attached example code, the debugger shows B%val as 1.67....e-313instead of the expected 27.23.
The write statement works fine though and output 27.23 as expected.

Replacing class by type does correct the problem. However, doing this is not possible in type bound procedures.

Seeing all the problems I have foundin V11.1.035 so far, I do get the impression thatV11.1.035 shouldhave never been released as astable build.In my opinion,V11.1.035 should have been a (public)beta version as many of the new features don't work reliably enough for production environments. This is very unfortunate though, as I would really like to use the OO-features in some of our project.

Best regards,
Thomas

[plain]program TestClasses
    implicit none 
    type :: tClass
    real(8)     :: val = 27.23
    end type     
    class (tClass),allocatable :: B
    ALLOCATE(tClass::B)
    WRITE (*,*) B%Val
    end program TestClasses[/plain]

0 Kudos
6 Antworten
Steven_L_Intel1
Mitarbeiter
1.026Aufrufe
Thomas,

Thanks, I'll have this looked into.
Steven_L_Intel1
Mitarbeiter
1.026Aufrufe
Issue ID is DPD200138089.
Steven_L_Intel1
Mitarbeiter
1.026Aufrufe
This issue has been fixed in our sources - the fix will appear in a future update.
jond
Anfänger
1.026Aufrufe
Hi Steve,
I am experiencing the same problem with IVF 11.1.46. Is this supposed to be fixed for 11.1.46 or will it be fixed in a later compiler release. I am using VS2005 with Windows XP.
Thanks,
Jon
rogcar
Einsteiger
1.026Aufrufe
Quoting - jond
Hi Steve,
I am experiencing the same problem with IVF 11.1.46. Is this supposed to be fixed for 11.1.46 or will it be fixed in a later compiler release. I am using VS2005 with Windows XP.
Thanks,
Jon

Hello jond

It was not fixed yet, but, asSteve said, it will be fixed in a future release. I'm also trying to use some OO features, and getting the same errors.

Roger
Lorri_M_Intel
Mitarbeiter
1.026Aufrufe

Also, we discovered recently (too recent to make the next update) that CLASS objects that are dummy arguments do not display correctly.

We hope to fix that for a later update.

- Lorri
Antworten