From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2851 invoked by alias); 26 Jun 2013 06:11:07 -0000 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 Received: (qmail 2808 invoked by uid 48); 26 Jun 2013 06:11:01 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57711] Fortran 4.7.2/4.8.1 error: constraints for functions parameters Date: Wed, 26 Jun 2013 06:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg01534.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57711 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #2 from Tobias Burnus --- First, you have a *serious* bug in JAC/DUMMY_JAC: Namely, in DUMMY_JAC you have: double precision, intent(inout) :: RPAR(:) integer, intent(inout) :: IPAR(:) (Those have ASSUMED-SHAPE arrays) And in JAC: DOUBLE PRECISION, INTENT(INOUT) :: RPAR(*) INTEGER, INTENT(INOUT) :: IPAR(*) (And those are ASSUMED-SIZE arrays.) But for procedures declarations and its interface declarations, either both or neither has to use assumed-shape arrays. The compilers passes (internally) arguments quite differently - thus (unless the compiler detects it) it will cause problems at run time. Secondly and regrading gfortran: * For some reasons, it compiles with GCC 4.7 if one calls D_VODE instead of VODE. * The error message for generic matching should be better (cf. PR40276). When checking the interface of dummy procedure, it should be possible to give always an error.