- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Balises:
- Intel® Fortran Compiler
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Sure looks like a compiler bug to me - thanks. Escalated as issue DPD200408252.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
The developers say that this usage is simply invalid and will change the compiler to give an error in a future release.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I imagine we'll support this eventually, but not for now.

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable