From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27503 invoked by alias); 8 Nov 2007 19:17:01 -0000 Received: (qmail 27403 invoked by uid 48); 8 Nov 2007 19:16:47 -0000 Date: Thu, 08 Nov 2007 19:17:00 -0000 Message-ID: <20071108191647.27402.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31817] Give at least a warning for specification function without explicit interface 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-11/txt/msg00729.txt.bz2 ------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-11-08 19:16 ------- I think we already emit the error you'd like (and probably have done so for quite some time): $ cat k.f90 function f2 (fn, i) integer :: i, fn character (len = fn (i)) :: f2 end function f2 $ gfortran -c k.f90 k.f90:3.20: character (len = fn (i)) :: f2 1 Error: Function 'fn' at (1) must be PURE Is there anything more than that? -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31817