- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following ICE's 12.0.4 (with /warn:all /check:all /standard-semantics):
(Apologies if it's already been reported, some of these examples all blur into each other after a while.)
[fortran]PROGRAM poly_constructor IMPLICIT NONE TYPE :: parent INTEGER :: component END TYPE parent TYPE wrapper CLASS(parent), ALLOCATABLE :: item END TYPE wrapper TYPE(wrapper) :: scalar !**** scalar = wrapper(parent(2)) END PROGRAM poly_constructor [/fortran]If you delete the component of parent and remove the argument 2 from the structure constructor, the form of the ICE is a bit different. Then (in addition, not independently) you can make the component non-polymorphic too, and things still go pear shaped.
(Apologies if it's already been reported, some of these examples all blur into each other after a while.)
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - I don't recall seeing these before. Escalated as issue ID DPD200169923.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These issues will be fixed in a future version of the compiler.
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
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