https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
Harald Anlauf <anlauf at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #4 from Harald Anlauf <anlauf at gmx dot de> --- There appears to be a difference between class(*) and e.g. type(*) in the detection of clashes. % cat pr77517-3.f90 class(*), allocatable :: a type(*), allocatable :: c contains subroutine a end subroutine c end end % gfc-trunk -c pr77517-3.f90 pr77517-3.f90:6:14: subroutine c 1 Error: SUBROUTINE attribute conflicts with ALLOCATABLE attribute in 'c' at (1) pr77517-3.f90:1:28: class(*), allocatable :: a 1 pr77517-3.f90:8:3: end 2 Error: Two main PROGRAMs at (1) and (2) Also try commenting out one of the declarations.