------- Comment #11 from kargl at gcc dot gnu dot org 2006-05-04 22:04 ------- Harald,
I've looked at the problem. The -Wall option will set the -Wnonstd-intrinsic option. This flag appears to trigger a warning when used with -pedantic. It does not trigger a warning if you use it with just -std=f95. troutmask:sgk[254] gfc4x -std=f95 -Wnonstd-intrinsics -o z iargc.f90 /home/sgk/tmp/ccaTswTS.o(.text+0x55): In function `MAIN__': : undefined reference to `iargc_' collect2: ld returned 1 exit status which by now looks familiar to you. With "-std=f95 -fall-intrinsic -Wall"., gfortran added iargc to the list of intrinsics and set -Wnonstd-intrinsics to trigger a warning. However, the -std=f95 was telling gfc_notify_std to convert the warning to an error. I have a patch that will turn this back into a warning. Will this make you happy? troutmask:sgk[255] gfc4x -std=f95 -fall-intrinsics -Wnonstd-intrinsics -o z iargc.f90 In file iargc.f90:5 print *, iargc() 1 Warning: Intrinsic 'iargc' at (1) is not included in the selected standard troutmask:sgk[256] ./z 2 1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20248