From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16801 invoked by alias); 20 Aug 2007 14:48:16 -0000 Received: (qmail 15693 invoked by uid 48); 20 Aug 2007 14:47:58 -0000 Date: Mon, 20 Aug 2007 14:48:00 -0000 Message-ID: <20070820144758.15692.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/33097] Function decl trees without proper argument list In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg01389.txt.bz2 ------- 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