This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21177] wrong code with NULL()
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Apr 2005 13:06:36 -0000
- Subject: [Bug fortran/21177] wrong code with NULL()
- References: <20050423134523.21177.jv244@cam.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-24 13:06 -------
Found a patch (after a good night's sleep, it seemed to easy!):
Instead of
if (actual->expr_type != EXPR_NULL
&& !gfc_compare_types (&formal->ts, &actual->ts))
return 0;
we need to use
if ((actual->expr_type != EXPR_NULL ||
actual->ts.type != BT_UNKNOWN)
&& !gfc_compare_types (&formal->ts, &actual->ts))
return 0;
I'm regtesting it right now, and will post it in good form on monday (internet
dial-up access problems).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21177