diff options
author | Janus Weil <janus@gcc.gnu.org> | 2010-12-12 22:14:13 +0100 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2010-12-12 22:14:13 +0100 |
commit | 2c3d0cd3885a4c7786c0a62b6e46a7b244d3ce4e (patch) | |
tree | 95da660609df055dbd848091eb8141622c4ddb4b /gcc/fortran/resolve.c | |
parent | 4a10fb9416cefe050c804006aa77ca4fd6a8e8ab (diff) | |
download | gcc-2c3d0cd3885a4c7786c0a62b6e46a7b244d3ce4e.zip gcc-2c3d0cd3885a4c7786c0a62b6e46a7b244d3ce4e.tar.gz gcc-2c3d0cd3885a4c7786c0a62b6e46a7b244d3ce4e.tar.bz2 |
re PR fortran/46809 ([OOP] ICE with -fcheck=pointer for CLASS IS)
2010-12-12 Janus Weil <janus@gcc.gnu.org>
PR fortran/46809
* resolve.c (resolve_select_type): Set the location of the first
argument when generating the EXTENDS_TYPE_OF call.
2010-12-12 Janus Weil <janus@gcc.gnu.org>
PR fortran/46809
* gfortran.dg/pointer_check_8.f90: New.
From-SVN: r167731
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r-- | gcc/fortran/resolve.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index ab49e93..a27fe2d 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -7893,6 +7893,7 @@ resolve_select_type (gfc_code *code, gfc_namespace *old_ns) /* Set up arguments. */ new_st->expr1->value.function.actual = gfc_get_actual_arglist (); new_st->expr1->value.function.actual->expr = gfc_get_variable_expr (code->expr1->symtree); + new_st->expr1->value.function.actual->expr->where = code->loc; gfc_add_vptr_component (new_st->expr1->value.function.actual->expr); vtab = gfc_find_derived_vtab (body->ext.case_list->ts.u.derived); st = gfc_find_symtree (vtab->ns->sym_root, vtab->name); |