From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4854A3858D35; Tue, 30 Jun 2020 20:09:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4854A3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593547746; bh=mbsZJepfzxvmpYfeUCesKezQQx6DotOl5jG6vEku8i0=; h=From:To:Subject:Date:From; b=s8tx0seCg+ZNS4EAFLJQoIJxx/uk9DTTNoACpUr9ehlqw0+y4okOEyXCh+0z+KumV vyyzKENDdsu380cHpX84wn91ss3L+5Swl/T474hxp+HILy6RhOIGPAjo5Ziu/SLaHi SaDcmdxvHYuiX9yBffHXWVqtPuKGtLRH9U28LhwI= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96011] New: ICE in check_function_name, at fortran/decl.c:2429 Date: Tue, 30 Jun 2020 20:09:06 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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: Tue, 30 Jun 2020 20:09:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96011 Bug ID: 96011 Summary: ICE in check_function_name, at fortran/decl.c:2429 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Seems to be an old issue : $ cat z1.f90 program p contains type(t) function f() external f.n end end $ cat z2.f90 program p type t end type contains type(t) function f() external f.n end end $ gfortran-6 -c z2.f90 -g z2.f90:6:16: external f.n 1 Error: Function name 'f' not allowed at (1) $ gfortran-11-20200628 -std=3Df2018 -c z1.f90 # or with -g etc. 0x657422 gfc_format_decoder ../../gcc/fortran/error.c:970 0x1504fce pp_format(pretty_printer*, text_info*) ../../gcc/pretty-print.c:1475 0x14f96df diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info= *) ../../gcc/diagnostic.c:1159 0x657489 gfc_report_diagnostic ../../gcc/fortran/error.c:782 0x65759b gfc_error_opt ../../gcc/fortran/error.c:1352 0x658aa0 gfc_error(char const*, ...) ../../gcc/fortran/error.c:1381 0x63e415 check_function_name ../../gcc/fortran/decl.c:2429 0x6402c2 attr_decl1 ../../gcc/fortran/decl.c:8539 0x6402c2 attr_decl ../../gcc/fortran/decl.c:8683 0x6aacb1 match_word ../../gcc/fortran/parse.c:65 0x6aecfd decode_statement ../../gcc/fortran/parse.c:488 0x6afaea next_free ../../gcc/fortran/parse.c:1280 0x6afaea next_statement ../../gcc/fortran/parse.c:1512 0x6b121d parse_spec ../../gcc/fortran/parse.c:3939 0x6b3f0c parse_progunit ../../gcc/fortran/parse.c:5852 0x6b42f1 parse_contained ../../gcc/fortran/parse.c:5753 0x6b4196 parse_progunit ../../gcc/fortran/parse.c:5924 0x6b55e9 gfc_parse_file() ../../gcc/fortran/parse.c:6393 0x7016ff gfc_be_parse_file ../../gcc/fortran/f95-lang.c:212=