I was looking at enforcing some standards on my application of many years standing (> 200,000 lines for fortran code) so did a trial build with Fortran 2003 (/stand:f03). 5000 warnings later....
It doesn't look like too big a job actually, after globally replacing a load of tabs with spaces and stuff like integer*n declarations with integer(n),
I few things are causing some head scratching:
1] integer data constants in HEX in some module declarations (example as below):
integer(4) :: Bright_Yellow =#00FFFF
integer(4) :: Dull_Blue =#800000
What is a valid syntax in f2003 if there is one? I have spend 20 minutes searching help and internet without success?
2] I am using fortran 2011.9.300 in vs2010 shell and I get some warnings regarding things like ifqwin /XYCOORD/ structure/record entities which are obsolete in 2003 and should be derived types. I am about to upgrade my fortran anyway, will that issue go away? I know the code will still work and I can switch off repoting of specific warning numbers but I prefer not to if I can. Having maximum checking and warnings for new code is definately my prefered way.
BTW I inadvertantly posted this to some other intel forum (Perhaps C++?) in error.