From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5EC723858D28; Wed, 18 Jan 2023 18:27:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EC723858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674066439; bh=NpG10bN6eblCYOEBUvUlgdLAZ7rHyOkIh0vvLuEEiTs=; h=From:To:Subject:Date:From; b=xzTcofIDI5E+eSmI0XAHWV9w3HGlRIdznVgfooMq+hQoPhLvQzeK97f/lj+hEgf6Q IjowQwLXp0qyNKOCS45jA5/8tT2aXVE8AD+Z27k6JNb4jH+SJSFi/WmZgjpzSrEUcp P21fsPT0k7ZScFrGR1MA8N5n7nEYVTO7F6yTb3kQ= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108453] New: [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361 Date: Wed, 18 Jan 2023 18:27:19 +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=3D108453 Bug ID: 108453 Summary: [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361 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 r6 : $ cat z1.f90 module m type t end type end program p use m, only: t common t end $ cat z2.f90 module m type t end type end program p use m, only: t common /xc/ t end $ cat z3.f90 module m type t end type end program p use m common t end $ gfortran-5 -c z3.f90 z3.f90:7:11: common t 1 Error: Cannot change attributes of USE-associated symbol t at (1) $ gfortran-13-20230115 -c z3.f90 $ $ gfortran-13-20230115 -c z1.f90 z1.f90:6:7: 6 | use m, only: t | 1 internal compiler error: in gfc_trans_use_stmts, at fortran/trans-decl.cc:5= 361 0x8a707e gfc_trans_use_stmts ../../gcc/fortran/trans-decl.cc:5360 0x8a783b gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.cc:7837 0x82968e translate_all_program_units ../../gcc/fortran/parse.cc:6721 0x82968e gfc_parse_file() ../../gcc/fortran/parse.cc:7027 0x876eff gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229=