------- Comment #2 from burnus at gcc dot gnu dot org 2008-02-17 18:51 ------- +#define GFC_STD_F2008 (1<<7) /* New in F2008. */ #define GFC_STD_LEGACY (1<<6) /* Backward compatibility. */ #define GFC_STD_GNU (1<<5) /* GNU Fortran extension. */ #define GFC_STD_F2003 (1<<4) /* New in F2003. */
I fear this will break some std tests. You should better use: #define GFC_STD_LEGACY (1<<7) /* Backward compatibility. */ #define GFC_STD_GNU (1<<6) /* GNU Fortran extension. */ #define GFC_STD_F2008 (1<<5) /* New in F2008. */ #define GFC_STD_F2003 (1<<4) /* New in F2003. */ which is also more readable - especially when we will have F2013 etc. decl.c also contains two STD_F2008: "Fortran 2008 draft allows BIND(C) for internal procedures.". Additionally, one needs to update *texi for the new -std=f2008 option. Also the .F08/.f08 should be supported, cf. http://gcc.gnu.org/ml/fortran/2007-01/msg00410.html and note that also the CPP section has to updated. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33197