From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 422733858D28; Thu, 16 Dec 2021 15:05:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 422733858D28 From: "b.j.braams at cwi dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103748] New: [PDT] Variable declaration with PDT syntax when the type is not a PDT fails to trigger a syntax error Date: Thu, 16 Dec 2021 15:05: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: 10.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: b.j.braams at cwi dot nl 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: Thu, 16 Dec 2021 15:05:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103748 Bug ID: 103748 Summary: [PDT] Variable declaration with PDT syntax when the type is not a PDT fails to trigger a syntax error Product: gcc Version: 10.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: b.j.braams at cwi dot nl Target Milestone: --- This code compiles without error message even though it contains a syntax error. program test implicit none type f_type integer, allocatable :: x(:) end type f_type type (f_type(n=3D9)) :: f ! should trigger a syntax error stop end program test (History: f_type used to be a parameterized type. I changed it, but neglect= ed to change the declaration of a variable of type (f_type).)=