------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-08-20 14:47 ------- Confirmed. The same thing is true for external procedures, like:
program test real x external x print *, x(2) end program test real function x(i) integer i x = i + 1 end function x Two decls are generated for function x, the first one (inside MAIN__) doesn't have a proper argument list while the second one is OK. When I try to make gfortran emit only one decl per externally-visible function, it's currently choking on this. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to fail| |4.1.2 4.2.0 4.3.0 Last reconfirmed|0000-00-00 00:00:00 |2007-08-20 14:47:58 date| | Summary|Invalid decl trees are |Function decl trees without |created for external |proper argument list |intrinsics | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33097