From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1931538618FF; Sun, 4 Oct 2020 12:47:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1931538618FF From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97224] [8/9/10/11 Regression] SPECCPU 2006 Gamess fails to build after g:e5a76af3a2f3324efc60b4b2778ffb29d5c377bc Date: Sun, 04 Oct 2020 12:47:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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, 04 Oct 2020 12:47:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97224 --- Comment #9 from Dominique d'Humieres --- I think the two attached patches are not pertinent: both tests use independ= ent translation units, so they should compile. If I couple the TUs as in SUBROUTINE AIMPAC(ACO,AIC,EXPON,ICENT,ITYPE,OE,OCCNO) END COMMON /INTRFC/ FRIEND,AIMPAC,RPAC,PLTORB,MOLPLT call AIMPAC(ACO,AIC,EXPON,ICENT,ITYPE,OE,OCCNO) END or module AIMPAC ! { dg-error "cannot appear" } integer x END use AIMPAC COMMON /INTRFC/ FRIEND,AIMPAC,RPAC,PLTORB,MOLPLT ! { dg-error "cannot appe= ar" } END I get 8 | call AIMPAC(ACO,AIC,EXPON,ICENT,ITYPE,OE,OCCNO) | 1 Error: PROCEDURE attribute conflicts with COMMON attribute in 'aimpac' at (= 1) for the first case and 5 | use AIMPAC |=20 internal compiler error: in gfc_typenode_for_spec, at fortran/trans-types.c:1120 for the second one.=