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

IDB unable to evaluate components of array of extended derived type

Alexis_R_
New Contributor I
368 Views
The following code:
[fortran]module testmod type :: point real :: coo(3) = 0.0 end type type, extends(point) :: waypoint real :: angle = 0.0 end type end module program testprog use testmod type(waypoint) :: wp type(waypoint), allocatable :: wps(:) allocate(wps(3)) print *, wp print *, wps end program[/fortran]
Compiled with:
[bash]ifort -g test.f90[/bash]
Compiles & runs just fine.

However, when using IDB (12.1, update 9), I am unable to evaluate wps(1)%coo(1) (or any of the derived type components inherited from the POINT type). I get the following in the console output:
[bash]Unable to parse input as legal command or Fortran expression. Assertion failed: "expr" ./src/ui/cmds/cmdgui.C:183 This is an unexpected condition and may indicate the presence of a defect. If you wish to report this, please include the stack trace that follows. $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(_ZN15IDBAssertFailed3runEPKcS1_j+0xe) [0x60dca2] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(_ZN14DTLU_namespace12assertFailedEPKcS1_j+0x1e) [0xb51f8e] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(_ZN27CmdGuiEvalLineFollowPointer5do_itER19CmdExecutionContextRN10BaseForCmd9CmdResultE+0x12b) [0xa06833] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(_ZN10BaseForCmd7executeEb+0xfc5) [0x6598e5] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(_ZN12IDBEngineCmd7executeEv+0x21f) [0xa6ca43] $INTEL/composer_xe_2011_sp1.9.293/debugger/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS16DirectiveHandler10processMsgEPNS_15MSGCLASSFACTORY9ClientMsgE+0x12a) [0x2b5afd1d34da] $INTEL/composer_xe_2011_sp1.9.293/debugger/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS10Dispatcher11dispatchMsgEPNS_15MSGCLASSFACTORY9ClientMsgE+0x306) [0x2b5afd1d4b06] $INTEL/composer_xe_2011_sp1.9.293/debugger/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS12DSPostOffice13flushMsgQueueEv+0x22f) [0x2b5afd1d7b1f] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(_ZN8IudgGlue18processPendingMsgsEb+0x100) [0x9c62ec] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb [0x60af74] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(_Z15ProcessCommandsv+0x54) [0x60ba5c] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(__gxx_personality_v0+0x41d) [0x6099e5] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(_Z7idbMainiPPKcS1_+0x180) [0x609c76] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(main+0x3a) [0x60998a] /lib64/libc.so.6(__libc_start_main+0xf4) [0x32cb61d994] $INTEL/composer_xe_2011_sp1.9.293/bin/intel64/iidb(__gxx_personality_v0+0x232) [0x6097fa][/bash]
Does this mean there is something wrong with the code itself? Or is it an issue with idb?
Is there a work around?
0 Kudos
2 Replies
Georg_Z_Intel
Employee
368 Views
Hello,

this is a bug in IDB. I've filed a defect ticket (DPD200282166) for it and let you know once this is fixed and/or we've a workaround for it.

Thank you for reporting!

Best regards,

Georg Zitzlsberger

0 Kudos
Georg_Z_Intel
Employee
368 Views
Hello,

this problem will be fixed with the next update release: Intel Composer XE 2011 Update 11.

Best regards,

Georg Zitzlsberger
0 Kudos
Reply