[Bug fortran/59560] Resolution generic procedure of derived types fail

2014-01-08 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 janus at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/59560] Resolution generic procedure of derived types fail

2014-01-08 Thread klaas_giesbertz at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #13 from klaas_giesbertz at hotmail dot com --- You are right! Thanks a lot.

[Bug fortran/59560] Resolution generic procedure of derived types fail

2014-01-08 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #12 from janus at gcc dot gnu.org --- (In reply to klaas_giesbertz from comment #11) > Finally figured out how to make it work. I guess this is what the class(*) > is useful for. Using class(*) I can simply overload Func and its resolut

[Bug fortran/59560] Resolution generic procedure of derived types fail

2014-01-08 Thread klaas_giesbertz at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #11 from klaas_giesbertz at hotmail dot com --- Finally figured out how to make it work. I guess this is what the class(*) is useful for. Using class(*) I can simply overload Func and its resolution becomes dynamic. I consider the class

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #10 from janus at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #9) > When I say 4.7.3 it means the 4.7.3 release, otherwise I give the revision > number or the date if the former is not available. Ok, that matches

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #9 from Dominique d'Humieres --- When I say 4.7.3 it means the 4.7.3 release, otherwise I give the revision number or the date if the former is not available.

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #8 from janus at gcc dot gnu.org --- (In reply to janus from comment #7) > Some commit on the 4.7 > branch might have affected the behavior? After a quick look into the ChangeLog, I already have a suspicion: 2013-06-01 Janus Weil

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #7 from janus at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #6) > The test in comment 0 compiles with 4.7.3 and gives at run time Is this with the proper 4.7.3 release or some 4.7 branch build? Can you give the

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #5 from janus at gcc dot gnu.org --- (In reply to klaas_giesbertz from comment #4) > I have copied it back from my post and it still compiles with my > gfortran4.7.3. Could it have something to do with my build of gcc? Hopefully not, b

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread klaas_giesbertz at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #4 from klaas_giesbertz at hotmail dot com --- In reply to Comment2&3 (Janus): I have copied it back from my post and it still compiles with my gfortran4.7.3. Could it have something to do with my build of gcc? I used macports to insta

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #3 from janus at gcc dot gnu.org --- (In reply to klaas_giesbertz from comment #0) > This code compiles both with gcc4.7.3 and gcc4.8.2 and gives in both cases > the incorrect output: > Base Func called > It should have called the Deriv

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 janus at gcc dot gnu.org changed: What|Removed |Added CC||janus at gcc dot gnu.org --- Co

[Bug fortran/59560] Resolution generic procedure of derived types fail

2013-12-19 Thread klaas_giesbertz at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59560 --- Comment #1 from klaas_giesbertz at hotmail dot com --- Sorry, the 2nd argument of Init of UseBase in the 1st test should have been target instead of pointer. In that case 'program Test' becomes the same as in the 2nd test.