------- Comment #2 from burnus at gcc dot gnu dot org  2009-07-03 10:13 -------
Confirmed. One first gets the error message from gfc_get_sym_tree (already been
host associated), followed by the segfault, which happens at
==12785== Use of uninitialised value of size 8
==12785==    at 0x500F17: gfc_resolve_expr (resolve.c:4459)
which is
  4457            /* Give the symbol a symtree in the right place!  */
  4458            gfc_get_sym_tree (sym->name, gfc_current_ns, &st, false);
  4459            st->n.sym = sym;

Thus one should add a check for "st == NULL" (e.g via gcc_assert) and fix
gfc_get_sym_tree.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|x86_64-unknown-linux-gnu    |
   GCC host triplet|x86_64-unknown-linux-gnu    |
 GCC target triplet|x86_64-unknown-linux-gnu    |
           Keywords|                            |rejects-valid
      Known to fail|                            |4.1.3 4.2.1 4.3.3 4.4.1
                   |                            |4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-03 10:13:01
               date|                            |


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

Reply via email to