diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2016-11-07 19:33:27 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2016-11-07 19:33:27 +0000 |
commit | 39b4b34de01ef3cc035d0f42b31c171be2af3c7a (patch) | |
tree | 0f41f6dc1da3c15e7735fc3fd4a56653bb15b923 /gcc/fortran/expr.c | |
parent | 98a989094b11c0e5395b127d84fe0eb65191feda (diff) | |
download | gcc-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.c | 1 |
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; } |