From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C51D4387090F; Sun, 10 May 2020 15:35:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C51D4387090F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589124916; bh=VWahNbdnboYsGgTBuBeXLfJnJUwbCayJlq4lfLR+biE=; h=From:To:Subject:Date:From; b=inMvV4gVenOY/t97oJiD+Gbr1AQ/BR7vsLcaCEL0HeM14UirPUY+JDVjOduam4nG/ 1W/LuxCLn0BdRFUUfuLMr9+fradrHB93xQkpWaIUlNEyEKXDru/UH3Foa7+rfM9Vh+ yAzCF6YDnqTwuIdRsvWf1qh6nenX0C61CvYmcZ2M= From: "longb at cray dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95037] New: gfortran fails to compile a simple subroutine, issues an opaque message Date: Sun, 10 May 2020 15:35:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: longb at cray dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 10 May 2020 15:35:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95037 Bug ID: 95037 Summary: gfortran fails to compile a simple subroutine, issues an opaque message Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: longb at cray dot com Target Milestone: --- > cat test.f90 subroutine my_random_seed_v (size, put, get) integer, optional :: size integer, optional :: put(1) integer, optional :: get(1) call random_seed (size, put, get) end subroutine my_random_seed_v Works with Cray compiler: > ftn -c test.f90 > module swap PrgEnv-cray PrgEnv-gnu Fails with gfortran: > gfortran -c test.f90 (null):0: confused by earlier errors, bailing out > gfortran --version GNU Fortran (GCC) 9.3.0 20200312 (Cray Inc.) Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Original user was "confused" by the message, especially since there were no "earlier errors" output.=