------- Comment #2 from burnus at gcc dot gnu dot org 2007-07-24 20:53 -------
Of cause it did not regtest :-(
(fails for impure_assignment_2.f90, l.58, were "B" is a host-associated
variable; thus gfc_pure(NULL) seems to be ok.)
The problem is actually that gfc_check_pointer_assign is called twice. Once
gfc_current_ns->proc_name->name is correctly "foo", but the second time
gfc_current_ns->proc_name->name is "bar"; in the latter case the call tree
looks as follows: gfc_check_pointer_assign <- gfc_check_assign_symbol <-
traverse_ns <- resolve_types. In resolve types: "gfc_current_ns = ns;"
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32881