[Bug fortran/61527] class/extends, multiple generic assignment, accept invalid

2014-06-16 Thread mrestelli at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61527 --- Comment #2 from mrestelli --- I am no expert, but I think that the correct behaviour is that of the older version: the two interfaces indeed are ambiguous, since a call like type(t2) :: b call disp(b) could call both disp1 and disp2.

[Bug fortran/61527] class/extends, multiple generic assignment, accept invalid

2014-06-16 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61527 --- Comment #1 from Dominique d'Humieres --- Up to r200946 (2013-07-14, 4.9) gfortran gives an error Error: Ambiguous interfaces 'disp2' and 'disp1' in generic interface 'disp' at (1) >From at least r201266 (2013-07-26) gfortran accepts the cod