https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90987
Bug ID: 90987
Summary: Wrong error message with variables named "COMMON*"
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dominiq at lps dot ens.fr
Target Milestone: ---
Compiling the following code
module mymod
type :: mytyp
integer :: i
end type mytyp
contains
subroutine mysub
implicit none
type(mytyp) :: a
integer :: commoni,commonj
commoni = a%i
commonj = a%j
end subroutine mysub
end module mymod
with revision r272613 gives
11 | commonj = a%j
| 1
Error: Syntax error in COMMON statement at (1)