This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18737] ICE on invalid use of external keyword
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Aug 2005 11:42:05 -0000
- Subject: [Bug fortran/18737] ICE on invalid use of external keyword
- References: <20041130130554.18737.coudert@clipper.ens.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From paulthomas2 at wanadoo dot fr 2005-08-03 11:42 -------
(In reply to comment #4)
> The bug is caused by the call to gfc_set_default_type in resolve.c:3961
passing
> 0 as second argument, thereby suppressing the error that should be issued
there.
> Unfortunately, passing 1 for the argument breaks code which calls intrinsic
> functions.
This sounds familiar! I can add this to the pr16940 fix; ie. before calling
gfc_set_default_type, we look for an external declaration, as well as a generic
interface. I'll put it on the TODO list.
Paul T
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18737