aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/match.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2016-11-07 15:25:21 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2016-11-07 15:25:21 +0000
commitce38615375423318724488c58bfa607391fb3204 (patch)
treefac5ff15ba3861e01327641a25c869d530089017 /gcc/fortran/match.c
parentb5fbe7164833774eabba67ecd47b3658d8e2c395 (diff)
downloadgcc-ce38615375423318724488c58bfa607391fb3204.zip
gcc-ce38615375423318724488c58bfa607391fb3204.tar.gz
gcc-ce38615375423318724488c58bfa607391fb3204.tar.bz2
re PR fortran/78226 (Fill out location information everywhere)
2016-11-07 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/78826 * match.c (gfc_match_select_type): Add where for expr1. * resolve.c (resolev_select_type): Add where for expr1 of new statement. From-SVN: r241909
Diffstat (limited to 'gcc/fortran/match.c')
-rw-r--r--gcc/fortran/match.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c
index 40566f6..5a7451e 100644
--- a/gcc/fortran/match.c
+++ b/gcc/fortran/match.c
@@ -5898,6 +5898,7 @@ gfc_match_select_type (void)
{
expr1 = gfc_get_expr ();
expr1->expr_type = EXPR_VARIABLE;
+ expr1->where = expr2->where;
if (gfc_get_sym_tree (name, NULL, &expr1->symtree, false))
{
m = MATCH_ERROR;