From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13E573857C40; Wed, 14 Sep 2022 18:53:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13E573857C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663181626; bh=dayJ5jL57h/Bmwnd+UZCzVxt1Qe0gudgo5rL7s7bj60=; h=From:To:Subject:Date:From; b=jSJ4LnfLv93qyTHSzQJul4vepEr8roAqCOw4vFinBTrBcwltVkZbrsSzF1p46IOq9 5YLkh2ARqjn+a+Uv0qwp0oZ5m1qXUyMj/o8XIxSbDYVo5ZEF3XO5fVKeLpJCJR4FYx YLTskqfIRlFj1ULHzFX18MmlC31k/jYCLRzwrnf8= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106946] New: [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726 Date: Wed, 14 Sep 2022 18:53:45 +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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106946 Bug ID: 106946 Summary: [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started with r9 between 20180819 and 20180826 : $ cat z1.f90 program p type t class(u), allocatable :: a b end type end $ cat z2.f90 module m type t class(u), allocatable :: a b end type end $ gfortran-9-20180819 -c z1.f90 z1.f90:3:30: 3 | class(u), allocatable :: a b | 1 Error: Derived type at (1) has not been previously defined and so cannot ap= pear in a derived type definition $ gfortran-13-20220911 -c z1.f90 z1.f90:3:33: 3 | class(u), allocatable :: a b | 1 Error: Syntax error in data declaration at (1) z1.f90:1:9: 1 | program p | 1 Error: Argument 'src' of '_copy' with PASS(src) at (1) must be of the deriv= ed type '__class_p_U_a' f951: internal compiler error: Segmentation fault 0xf386bf crash_signal ../../gcc/toplev.cc:314 0x8781c2 resolve_component ../../gcc/fortran/resolve.cc:14726 0x878ca2 resolve_fl_derived0 ../../gcc/fortran/resolve.cc:15075 0x878fed resolve_fl_derived ../../gcc/fortran/resolve.cc:15207 0x872a67 resolve_symbol ../../gcc/fortran/resolve.cc:15584 0x891d72 do_traverse_symtree ../../gcc/fortran/symbol.cc:4174 0x876034 resolve_types ../../gcc/fortran/resolve.cc:17534 0x8714ac gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.cc:17649 0x8592a4 resolve_all_program_units ../../gcc/fortran/parse.cc:6606 0x8592a4 gfc_parse_file() ../../gcc/fortran/parse.cc:6862 0x8a7c6f gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229=