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

Type bound procedure overrides not overriding

IanH
Honored Contributor III
568 Views
Using 12.0.3 and with a sufficiently deep type heirarchy I'm seeing evidence that type bound procedure overrides are being "forgotten" during calls to other type bound procedures that exist in the heirarchy. It's almost like the passed argument to the initially called type bound procedure loses it's polymorphic nature. Example attached...

forgetful_overrides.f90

[plain]>ifort /check:all /warn:all /standard-semantics forgetful_overrides.f90
Intel Visual Fortran Compiler XE for applications running on IA-32, Version 12.0.3.175 Build 20110309
Copyright (C) 1985-2011 Intel Corporation.  All rights reserved.

Microsoft  Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:forgetful_overrides.exe
-subsystem:console
forgetful_overrides.obj

>forgetful_overrides.exe
Neo likes the colour Red
Neo took the Yellow pill[/plain]
IIRC yellow wasn't actually one of the options.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
569 Views
Thanks - we'll take a look at this.
0 Kudos
Steven_L_Intel1
Employee
569 Views
Yellow is the default FavoriteColor in the abstract type. I agree that this is not working right and have escalated this as issue DPD200169440.
0 Kudos
Steven_L_Intel1
Employee
569 Views
This will be fixed in a future version of the compiler.
0 Kudos
Reply