------- Comment #10 from janus at gcc dot gnu dot org 2010-03-04 10:35 ------- (In reply to comment #9) > From: F2003, "3.3.2 Fixed source form": "Except in a character context, blanks > are insignificant and may be used freely throughout the program."
I guess this is what triggered the famous quote "Consistently separating words by spaces became a general custom about the tenth century A. D., and lasted until about 1957, when FORTRAN abandoned the practice." To me the code in comment #8 looks completely insane and unreadable, but if some crazy standards document says it's legal, then so be it :) > One possibility is simply to return MATCH_NO for fixed form code if one is not > in COMP_DERIVED_CONTAINS and do the space/colon check for free-form code. For me it would also be fine to just use the patch in comment #5 and simply ignore the issue in fixed form. I wouldn't expect anyone to use F03 FINAL statements in F77 fixed source form anyways. [Anyone progressive enough to even *think* about FINAL statements would probably have abandoned fixed form long before producing such thoughts.] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43244