------- Comment #1 from jaydub66 at gmail dot com  2008-04-08 20:58 -------
Tobias,

I can confirm the behaviour you described for this test case, provided of
course that "one" and "two" are implemented somewhere externally. Otherwise one
gets

undefined reference to `two_'

because there is only an interface for "two" but no actual implementation.


Now, if I apply the fix for PR35830, i.e. adding the following line in
"copy_formal_args":

formal_arg->sym->as = gfc_copy_array_spec (curr_arg->sym->as);

Then also the error message for "call foo(two)" goes away! So this "Type/rank
mismatch in argument 'f'" you saw before was apparently due to that
array-handling bug in "copy_formal_args"!


-- 

jaydub66 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jaydub66 at gmail dot com


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

Reply via email to