https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120784
--- Comment #7 from anlauf at gcc dot gnu.org --- Created attachment 61738 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61738&action=edit New testcase The committed patch unfortunately broke this (reduced) testcase: pr120784-v2.f90:23:21: 23 | end interface local | 1 Error: Expecting 'END INTERFACE ' at (1) pr120784-v2.f90:25:8: 25 | contains | 1 Error: Unexpected CONTAINS statement in INTERFACE block at (1) pr120784-v2.f90:29:18: 29 | local = .true. | 1 Error: Unexpected assignment statement at (1) in INTERFACE body pr120784-v2.f90:30:25: 30 | end function local_invt | 1 Error: Entity 'local_invt' at (1) is already present in the interface pr120784-v2.f90:32:3: 32 | end module mod2 | 1 Error: Expecting END INTERFACE statement at (1) f951: Error: Unexpected end of file in 'pr120784-v2.f90'