aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/expr.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2016-11-07 19:33:27 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2016-11-07 19:33:27 +0000
commit39b4b34de01ef3cc035d0f42b31c171be2af3c7a (patch)
tree0f41f6dc1da3c15e7735fc3fd4a56653bb15b923 /gcc/fortran/expr.c
parent98a989094b11c0e5395b127d84fe0eb65191feda (diff)
downloadgcc-39b4b34de01ef3cc035d0f42b31c171be2af3c7a.zip
gcc-39b4b34de01ef3cc035d0f42b31c171be2af3c7a.tar.gz
gcc-39b4b34de01ef3cc035d0f42b31c171be2af3c7a.tar.bz2
re PR fortran/78226 (Fill out location information everywhere)
2016-11-07 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/78226 * expr.c (gfc_generate_initializer): Add where to EXPR_NULL statement. * iresolve.c (gfc_resolve_extends_type_of): Add where to both arguments of the function. * resolve.c (resolve_select_type): Add where to the second argument of the new statement. From-SVN: r241927
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r--gcc/fortran/expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c
index 0e94ae8..ba79190 100644
--- a/gcc/fortran/expr.c
+++ b/gcc/fortran/expr.c
@@ -4367,6 +4367,7 @@ gfc_generate_initializer (gfc_typespec *ts, bool generate)
{
ctor->expr = gfc_get_expr ();
ctor->expr->expr_type = EXPR_NULL;
+ ctor->expr->where = init->where;
ctor->expr->ts = comp->ts;
}