https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99350
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|87477 | CC| |pault at gcc dot gnu.org --- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> --- program p character((0.)/0), target :: c = 'abc' print *, c end Is a sufficient reproducer and so this is not an associate bug. I am removing it from the blocks PR87477 list but will keep at it. For whatever reason, the parentheses block the identification of the divide by zero. Removing the decl.cc chunk in the patch identified in comment #1 (thanks again Martin!) fixes this problem but changes the error messages in the testcases. Paul Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87477 [Bug 87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement