Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Annonces
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.

parametrized derived type problem

Ulrich_M_
Nouveau contributeur I
716 Visites

Hi,

The following program stops for me after having printed "x" and crashes on the parameterized derived type assignment in the critical section. It works as intended if the components are assigned separately (as in the commented out lines). Compiler bug? Thank you,

UM

0 Compliments
5 Réponses
Steven_L_Intel1
Employé
716 Visites

Sure looks like a compiler bug to me - thanks. Escalated as issue DPD200408252. 

0 Compliments
Ulrich_M_
Nouveau contributeur I
716 Visites

I did some reading: the OpenMP 4.0 standard explicitly declares parametrized derived types as not supported, so I guess the behavior is technically undefined.

UM

0 Compliments
Steven_L_Intel1
Employé
716 Visites

The developers say that this usage is simply invalid and will change the compiler to give an error in a future release.

0 Compliments
jimdempseyatthecove
Contributeur émérite III
716 Visites

Steve,

In this specific case, the paramerterized derived type is also POD. The compiler could have easily handled this. Note that the sample code also illustrates a POD copy operator for

      Siginvs0(j)=Siginv

Therefore I suggest that a compiler issue a warning about potential non-portable statements, but implement POD support for parameterized derived types. MHO

Jim Dempsey

0 Compliments
Steven_L_Intel1
Employé
716 Visites

I imagine we'll support this eventually, but not for now.

0 Compliments
Répondre