https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32986
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #4 from anlauf at gcc dot gnu.org --- Created attachment 55782 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55782&action=edit Draft patch How about the attached patch? This gives for the code in comment#0: pr32986.f90:2:14: 2 | real :: x(n) | 1 3 | common /c/ x | 2 Error: Automatic object 'x' at (1) cannot appear in COMMON at (2)