- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I have a problem viewing composite type variables such of this type
A%B%pointer
Universally I get in debug "Undefined address", when they are defined and the computation works fine - but the debug windows claim it is undefined.
In contrast A%pointer is ok.
Any hints on how to overcome this problem?
- Balises:
- Intel® Fortran Compiler
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Any comments?
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
It's hard to comment without knowing what the variable declarations look like.
--Lorri
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Any declaration. Here is a simple code
type t1
integer, pointer :: c(:)
end type
type t2
type(t1) :: b
end type
type (t2) :: a
type (t1) :: b
ALLOCATE(a%b%c(1),b%c(1))
a%b%c(1)=1
b%c(1)=1
Now if you put a%b%c in QuckWatch it says "Undefined address". This was not a problem in the earlier versions. In contrast if you put b%c in QuckWatch you get no problems,
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I am not seeing this behavior with the 16.0.0 compiler and VS2013.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Tiho, in #4, where was the line pointer (yellow arrow) when you tried to watch the two variables? If on the line containing ALLOCATE, the pointers have not yet been defined, so what you saw ("undefined") is what you should expect.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Please attach a ZIP of your project that shows the problem after a build in the 2016 version.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I figured out the problem. The project contained and old *.sln file. I delete that file and on compile a new file is created and after that the is no more problems. I am attaching the example anyway if you want to investigate it. It would be nice if the file is deleted automatically when the project is updated from VS10 to VS13.

- 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