https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97224
--- Comment #6 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Mon, Sep 28, 2020 at 09:48:13AM +0000, tnfchris at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97224 > > Bug ID: 97224 > Summary: [8/9/10/11 Regression] SPECCPU 2006 Gamess fails to > build after g:e5a76af3a2f3324efc60b4b2778ffb29d5c377bc > Product: gcc > Version: 11.0 > Status: UNCONFIRMED > Severity: normal > Priority: P3 > Component: fortran > Assignee: unassigned at gcc dot gnu.org > Reporter: tnfchris at gcc dot gnu.org > CC: kargl at gcc dot gnu.org, markeggleston at gcc dot gnu.org > Target Milestone: --- > > The benchmark fails to build after > r11-3487-ge5a76af3a2f3324efc60b4b2778ffb29d5c377bc with the following error: > > 108 | SUBROUTINE AIMPAC(ACO,AIC,EXPON,ICENT,ITYPE,OE,OCCNO, > | 1 > ...... > 920 | COMMON /INTRFC/ FRIEND,AIMPAC,RPAC,PLTORB,MOLPLT > | 2 > Error: Global entity 'aimpac' at (1) cannot appear in a COMMON block at (2) > parley.fppized.f:1118:23: > Without access to the source code, which was conveniently omitted, it cannot no be determined if gfortran is correct. The EBNF for COMMON is R873 common-stmt is COMMON [ / [ common-block-name ] / ] common-block-object-list [ [ , ] / [ common-block-name ] / common-block-object-list ] ... R874 common-block-object is variable-name [ ( array-spec ) ] AIMPAC is the name of a subroutine. It is not a variable-name. Unfortunately, there are 812 lines of missing code, so it is not possible to tell if AIMPAC is declared in local scope to something else, which blocks the global entity name.