[Bug fortran/45521] [F08] GENERIC resolution with ALLOCATABLE/POINTER and PROCEDURE
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 20 12:29:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45521
--- Comment #11 from janus at gcc dot gnu.org 2012-04-20 12:29:34 UTC ---
(In reply to comment #10)
> However, it yields a segfault at runtime (-fdump-tree-original shows that
> 'test2' is used in both calls).
Related to this, it also shows that the specific call
print *,test2(2.0)
is not being rejected, while
print *,test1(cos)
is. For for former, we clearly need to add a check in 'compare_parameter' to
reject it (which should also solve the segfault in comment #10 by selecting the
correct specific function for the generic call).
More information about the Gcc-bugs
mailing list