------- Comment #3 from dfranke at gcc dot gnu dot org  2007-02-23 00:21 -------
A note on the testcase: gfortran seems to resolve EXIT only once. 
If
  CALL exit()
  CALL exit(int_1)
gfortran happily compiles and links.

If 
  CALL exit(int_1)
  CALL exit()
then
/tmp/ccuE9OGi.o: In function `MAIN__':
subroutine-exit-link.f90:(.text+0x31): undefined reference to
`_gfortran_exit_i1'
collect2: ld returned 1 exit status

The same goes for `_gfortran_exit_i2':
if
  CALL exit(int_1)
  CALL exit(int_2)
then only `_gfortran_exit_i1' is missing -- and vice versa.


-- 


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

Reply via email to