[Bug fortran/37513] Misleading error for (invalid) protected_pointer => unprotected_pointer

mikael dot morin at tele2 dot fr gcc-bugzilla@gcc.gnu.org
Mon Sep 15 11:21:00 GMT 2008



------- Comment #2 from mikael dot morin at tele2 dot fr  2008-09-15 11:20 -------
(In reply to comment #0)
> I get one for "use good2", which is not only the lexpr->where/rexpr->where, but
> also the case if "use good2" is the only statement in "program main". I fail to
> understand why this goes wrong.
> 

When trying to resolve t in main there is a call to gfc_check_assign_symbol (to
check that the initialization value is compatible) in resolve_values.
Knowing that, both the error reported and the place where it is reported make
sense as t is protected and t is imported from good2.
I hope this helps.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37513



More information about the Gcc-bugs mailing list