From patchwork Mon Nov 7 15:25:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Koenig X-Patchwork-Id: 81109 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1068306qge; Mon, 7 Nov 2016 07:26:26 -0800 (PST) X-Received: by 10.107.8.105 with SMTP id 102mr7633998ioi.154.1478532386116; Mon, 07 Nov 2016 07:26:26 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id c2si26541310paf.343.2016.11.07.07.26.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 07:26:26 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-440634-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-440634-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-440634-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=o1b65N+2pZzCWReeYJbewG69ZgUlSkwENKIXHDsUF8/k8QSSKR ABwnQ7aNTAnrIDe4r+G5z2BD30fl/jGyHj+TW4jd1zW/nAxsBdIk1rB5T1mf12sg /y8k2uR+oHpPCy7oDGxQm3AsLKh+75HZGguwjcLvnr/3unluo3ENBZkc0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=r2US+UW5ZxQ9we0KbsJPyIX/DQI=; b=A22OKPPiiRoIKXPcanqI YFbpVlOQaVZGzv4BNPSva5BLhoQJED4KmRziFLSS97eaCwKfDIvzgHKO5j0PNQ3O QDoVdEq3A3LjpG28f1pvdkEGYp6JOq5WCDnwzseaZ06QFoXeL6ZSqKPvorLjMzfL GJ4FnEuTXjtGeHMpP/qH+xA= Received: (qmail 43765 invoked by alias); 7 Nov 2016 15:26:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 43725 invoked by uid 89); 7 Nov 2016 15:26:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=vtab, UD:ts.u.derived, UD:u.derived, UD:derived X-Spam-User: qpsmtpd, 2 recipients X-HELO: cc-smtpout3.netcologne.de Received: from cc-smtpout3.netcologne.de (HELO cc-smtpout3.netcologne.de) (89.1.8.213) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Nov 2016 15:25:56 +0000 Received: from cc-smtpin2.netcologne.de (cc-smtpin2.netcologne.de [89.1.8.202]) by cc-smtpout3.netcologne.de (Postfix) with ESMTP id 51D3A125D5; Mon, 7 Nov 2016 16:25:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cc-smtpin2.netcologne.de (Postfix) with ESMTP id 4D38611DA6; Mon, 7 Nov 2016 16:25:52 +0100 (CET) Received: from [78.35.130.68] (helo=cc-smtpin2.netcologne.de) by localhost with ESMTP (eXpurgate 4.1.9) (envelope-from ) id 58209d00-0c00-7f0000012729-7f000001ad5b-1 for ; Mon, 07 Nov 2016 16:25:52 +0100 Received: from [192.168.178.20] (xdsl-78-35-130-68.netcologne.de [78.35.130.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by cc-smtpin2.netcologne.de (Postfix) with ESMTPSA; Mon, 7 Nov 2016 16:25:51 +0100 (CET) To: "fortran@gcc.gnu.org" , gcc-patches From: Thomas Koenig Subject: [patch, fortran, committed] Fill in some more locations Message-ID: Date: Mon, 7 Nov 2016 16:25:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Hello world, I have committed the little patchlet below as obvious, after regression-testing. Regards Thomas 2016-11-07 Thomas Koenig 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. Index: match.c =================================================================== --- match.c (Revision 241887) +++ match.c (Arbeitskopie) @@ -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; Index: resolve.c =================================================================== --- resolve.c (Revision 241887) +++ resolve.c (Arbeitskopie) @@ -8857,6 +8857,7 @@ resolve_select_type (gfc_code *code, gfc_namespace new_st->expr1->value.function.actual = gfc_get_actual_arglist (); new_st->expr1->value.function.actual->expr = gfc_get_variable_expr (selector_expr->symtree); new_st->expr1->value.function.actual->expr->where = code->loc; + new_st->expr1->where = code->loc; gfc_add_vptr_component (new_st->expr1->value.function.actual->expr); vtab = gfc_find_derived_vtab (body->ext.block.case_list->ts.u.derived); st = gfc_find_symtree (vtab->ns->sym_root, vtab->name);