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

The f2003 code does not work. Why?

slsfortran
Beginner
520 Views
The complier is 11.1.046.
The code is from the book "fortran_95-2003_for_scientists_and_engineers_3rd_edition". (I modified some of them)

The error is:

Error 1 error #8227: The type of the target is not a dynamic type of the pointer. [EMP1]
Error 2 error #8227: The type of the target is not a dynamic type of the pointer. [EMP2]

I'm confused!
0 Kudos
5 Replies
Steven_L_Intel1
Employee
520 Views
I seem to recall discussing a similar issue with the developers last week. I think this is a compiler bug, but am not 100% certain. (Maybe 98% sure.) I'll research this and get back to you.

FWIW, you're actually using 11.1.046...
0 Kudos
Steven_L_Intel1
Employee
520 Views
Escalated as issue DPD200140688. A workaround is to reorder the USE statements in test_employee so that the USE of employee_class comes first.
0 Kudos
slsfortran
Beginner
520 Views
Yes, you are right.

If I use these, no error
use employee_class ! use parent class
use hourly_employee_class ! import hourly employee class
use salaried_employee_class ! import salaried employee class


If I use these, error
use hourly_employee_class ! import hourly employee class
use salaried_employee_class ! import salaried employee class
use employee_class ! use parent class


.........It is a bug? or the standard?
0 Kudos
Steven_L_Intel1
Employee
520 Views
It's a bug.
0 Kudos
Steven_L_Intel1
Employee
520 Views
This issue is fixed in 11.1 Update 6, available now.
0 Kudos
Reply