------- Comment #18 from burnus at gcc dot gnu dot org  2010-06-01 08:03 -------
Just for fun, I have feed it into NAG's f95 - and it prints:

Extension: gjff.f90, line 2: AC-implied-DO limit references control variable I
$ ./a.out
 1 2 3 4 5

Where extension = vendor extension. (NAG also uses "extension" = F2003, which
can be silenced via -f2003.)

Intel's ifort rejects it (ERROR) - as previously stated - while g95, pathf95,
and openf95 allow it without any warning and print "1 2 3 4 5".

Expected:
a) Allow it as extension (-std=gnu or -std=legacy; especially, for -std=gnu one
could consider a default-enabled warning)
b) Reject it for -std=f(95,2003,2008)


Thus, I am in favour of Mikael's patch, but one should also add some
diagnostics.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44354

Reply via email to