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

Derived class user defined constructors

Anshuman_Singh
Beginner
784 Views

I am trying to write my own contructors for the derived class. If I access the derived class fuctions with pointers of abstract base class type, it produces runtime error for the circle class. It does not happen for the rectangle class where I am not using my own constructor. The files are m_shape.f90 for abstract base class, m_rect.f90 and m_circle.f90 for derived classes and derivedtest.f90 is the test program.
Thanks,
Anshuman.
m_shape.f90
m_rect.f90
m_circle.f90
derivedtest.f90

0 Kudos
5 Replies
Anshuman_Singh
Beginner
784 Views
Sorry for uploading the wrong files prviously. The files are now updated. I face the same problem.
Thanks.
Anshuman
0 Kudos
Anonymous66
Valued Contributor I
784 Views
Hello Anshuman,
I will file a bug report. The fact that it is derived type class does not seem to matter.
Regards,
Annalee
0 Kudos
Anonymous66
Valued Contributor I
784 Views

I have escalated this issue to the developers. The issue number is DPD200177020. I will post any updates on this issue to this thread.

0 Kudos
Anonymous66
Valued Contributor I
784 Views
A fix for this issue has been found, we currently planto include it in the next major release.
0 Kudos
Anonymous66
Valued Contributor I
784 Views
This is issue has been fixed in Intel® Visual Fortran Composer XE for Windows* 2013 which is now available at the Intel® Registration Center. Regards, Annalee Intel Developer Support * Other names and brands may be claimed as the property of others.
0 Kudos
Reply