From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30427 invoked by alias); 23 Feb 2018 18:08:28 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 30407 invoked by uid 89); 23 Feb 2018 18:08:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-yb0-f171.google.com Received: from mail-yb0-f171.google.com (HELO mail-yb0-f171.google.com) (209.85.213.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 23 Feb 2018 18:08:26 +0000 Received: by mail-yb0-f171.google.com with SMTP id v135-v6so3186080ybe.2; Fri, 23 Feb 2018 10:08:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0NaM/Qtbqu0frtlGg1G0K5nHbHoK7yFrG9bMhkPF1tQ=; b=AA1Useht/mFZYYub5fTc8msSxqoQlNqqXcsn31jR1a4qhygTOAQoRJiy+HlpA1IPaw 1J/zbqd1/0m/JJYLQ3OUnofPpeoOCq3YGXOfYy2eAxq/4urvJIyFBI2SVOoBWVIX0C3D 72petyU0XYyerk5e5QoI55i25u/Au1rp3Aw8uSC2H8TDjnp9e6iWtFl6ujKMgh9eSUfx tFq4WVXuAE1IN36JHgEz3dJg5KZlLQ1y24FNW3dod5woE4PV7oq4FZMn/+PBdsvgCZF+ 2PcEq710KmwE29o/Ix30eISwDqK1OnckT+8ZINoUlfRAJFnAYsCAuHuvgsHdwQrGjCmh nsqQ== X-Gm-Message-State: APf1xPBUYIgfjovN3xlJYGEj3LXuBIX/2g2c6RrUllfY042zLd11RYjp YQ/WFdVkTw6Q2uv7v+Mfq/KmQAvHb0a1l78Q9D8nqw== X-Google-Smtp-Source: AG47ELv5JTCnTUIVh8ybwlwUunqTrH7lJ8jUs3N2Dy1nyGpByr6nFXcZI/C831o6i1y4nDSnD0A//6q5n+T+BF4IacM= X-Received: by 2002:a25:2749:: with SMTP id n70-v6mr1827413ybn.220.1519409304204; Fri, 23 Feb 2018 10:08:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.13.228.67 with HTTP; Fri, 23 Feb 2018 10:08:23 -0800 (PST) From: Paul Richard Thomas Date: Fri, 23 Feb 2018 18:08:00 -0000 Message-ID: Subject: [Patch, fortran] PR83149 [8 Regression] ICE on SELECT CASE: crash_signal in toplev.c:325 To: "fortran@gcc.gnu.org" , gcc-patches Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00166.txt.bz2 Hi All, The original bug is fixed as 'obvious' in revision 257938. This is indeed a regression. The bug in comments 2 and 7 is fixed in revision 257934. This, however, is not a regression. The summary will be changed accordingly. The 'obvious' tag comes about because both bugs have a common origin: referencing the components of ns->proc_name without testing to see if it is there. Should I close this or should I apply the second part to 7-branch? Cheers Paul >>>>>revision 257938: 2018-02-23 Paul Thomas PR fortran/83149 * trans-types.c (gfc_sym_type): Test sym->ns->proc_name before accessing its components. 2018-02-23 Paul Thomas PR fortran/83149 * gfortran.dg/pr83149_b.f90: New test. * gfortran.dg/pr83149_a.f90: Additional source for previous. >>>>>revision 257934: 2018-02-23 Paul Thomas PR fortran/83149 * trans-decl.c (gfc_finish_var_decl): Test sym->ns->proc_name before accessing its components. 2018-02-23 Paul Thomas PR fortran/83149 * gfortran.dg/pr83149_1.f90: New test. * gfortran.dg/pr83149.f90: Additional source for previous.