- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - we'll take a look at this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yellow is the default FavoriteColor in the abstract type. I agree that this is not working right and have escalated this as issue DPD200169440.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This will be fixed in a future version of the compiler.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page