From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EED8D395B40E; Sun, 14 Jun 2020 12:45:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EED8D395B40E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592138746; bh=UJB9oC7R6yJRwwKG/8uPWVp9sB1OkTKoWVRLMdHr7vo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q2meQMErtpp+zMUhcKpshjh7fPO1opKbmP9XY3fV+6ZXEz4n6ugD7SUk/1iG6z3uy FAYwe5UnuAk/LSxlaT7W/zIUAkopaHwxczBJLlttmKfSBaRyi5ASRtTEhzcb21Pe6T xyoWrc4M3cbzJEQ1ndL4l9xJF7+bfdq/wz3tj8aw= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95037] gfortran fails to compile a simple subroutine, issues an opaque message Date: Sun, 14 Jun 2020 12:45:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: error-recovery X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2020 12:45:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95037 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #3 from Thomas Koenig --- Fixed on master with https://gcc.gnu.org/g:4644e8f15f835a9934a8d289ee08ba4cb46cbfac commit r11-1297-g4644e8f15f835a9934a8d289ee08ba4cb46cbfac Author: Thomas Koenig Date: Sun Jun 14 14:39:03 2020 +0200 Always use locations from get and put arguments for error messages. A simple and obvios patch - the error location was taken from a variable that was not initialized for optional variables. gcc/fortran/ChangeLog: * check.c (gfc_check_random_seed): Always use locations from get and put arguments for error messages. gcc/testsuite/ChangeLog: * gfortran.dg/random_seed_4.f90: New test. Closing. Thanks for the bug report!=