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: 691947 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tCGW04c1nz9tB1 for ; Tue, 8 Nov 2016 02:26:20 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="TtOD4IXC"; dkim-atps=neutral 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=yA7JqxDdJjnWhG/TnX7bQy3KkCzJxs3IYe2RnrATPxy0uafmIF loPxFDOfXTP0z3mmFIwTPpfMCtXRRH1ckCEkBxmJBgYafUSyrLoaM2H5AO/2aZYx QnbSb6psB/k8GKo23SejueO0N3+kcexQiZy7vDsKYB9+dyNboPeZOckUM= 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=TtOD4IXCeFxqaCRYQCff slgwWEeYoVcZeg99xBRjV+NpAjFbdV8x5JGsPV+ZkqeapcqzPuv2jR1sB5kkJoD9 qZeL6uky4ythmKnSYRvn5e/QPhcST+HjQM8ddwg+wKsazBLowGOOKsOeTmKpBUBO McIfD52lMYm2Zx8YC5sk70w= 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);