https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115328
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 59353 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59353&action=edit Proposed fix Here is a proposed fix, which passes all regressions and implements the FORWARD keyword. It also corrects procedure return type checking. It could be improved by modifying the symbol table to retain forward parameters, definition module parameters which could be used to create virtual tokens better describing the parameter conflicts (between definition/forward/proper procedures). This patch also contains new test cases for FORWARD and parameters in general.