------- Additional Comments From paulthomas2 at wanadoo dot fr 2005-08-03 11:42 ------- (In reply to comment #4) > The bug is caused by the call to gfc_set_default_type in resolve.c:3961 passing > 0 as second argument, thereby suppressing the error that should be issued there. > Unfortunately, passing 1 for the argument breaks code which calls intrinsic > functions.
This sounds familiar! I can add this to the pr16940 fix; ie. before calling gfc_set_default_type, we look for an external declaration, as well as a generic interface. I'll put it on the TODO list. Paul T -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18737