------- Comment #3 from burnus at gcc dot gnu dot org 2010-03-03 12:59 ------- (In reply to comment #0) > We should at least make sure the FINAL keyword is separated by spaces > when parsing stuff like this.
Be careful with this! In free format that's OK but fixed format has some strange way of interpreting spaces - though I can never remember how it exactly goes. > finalstate(1,(/1:2/))%ID = (/1,103/) > 1 > Error: Syntax error in array constructor at (1) Well, what is "[ 1:2 ]" supposed to mean? "1:2" is OK (array section) and also [1,2] and [(i,i=1,2)] which are array elements (by chance contiguous). -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|statement misinterpreted as |Invalid statement |FINAL declaration |misinterpreted as FINAL | |declaration http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43244