Re: undefined variable problem
- From: Bart Vandewoestyne <MyFirstName.MyLastName@xxxxxxxxxx>
- Date: Fri, 30 Mar 2007 21:07:27 GMT
On 2007-03-30, John Appleyard <spamtrap@xxxxxxxxxxxxxx> wrote:
Check out Catherine's reply again. I think you may have misunderstood
what the compiler means by "undefined". It doesn't mean "not allocated"
or "not declared" or "not associated". It means "used before set" -
i.e. no value has been assigned to a since it was created (by allocation
or whatever). It is an error to use the value of a variable if it has
never been given a value, and that is what the compiler is complaining
about.
Yep. I indeed misunderstood what the compiler was telling me.
It has been a while since i've compiled my code with NAGWare's
f95 and the -C=undefined option. Now that I'm compiling with
this setup, it seems that there are quite some places where I use
undefined variables... djeez, do i love this compiler switch! :-)
Thanks,
Bart
--
"Share what you know. Learn what you don't."
.
- References:
- undefined variable problem
- From: Bart Vandewoestyne
- Re: undefined variable problem
- From: Bart Vandewoestyne
- Re: undefined variable problem
- From: John Appleyard
- undefined variable problem
- Prev by Date: Re: undefined variable problem
- Next by Date: Re: array operations on non-conforming arrays -- do compilers catch them?
- Previous by thread: Re: undefined variable problem
- Next by thread: Re: Sample polling program code?
- Index(es):
Relevant Pages
|