From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7465 invoked by alias); 12 Jan 2013 16:11:48 -0000 Received: (qmail 7332 invoked by uid 48); 12 Jan 2013 16:11:26 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55362] [4.6/4.7/4.8 Regression] ICE with size() on character pointer Date: Sat, 12 Jan 2013 16: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-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: CC AssignedTo Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2013-01/txt/msg01096.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55362 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org AssignedTo|unassigned at gcc dot |pault at gcc dot gnu.org |gnu.org | --- Comment #3 from Paul Thomas 2013-01-12 16:11:23 UTC --- Applying Tobias' fix to array_check seems to do the job. As to his question about the DIM arg; this and probably many more need such a check. I am surprised that it is not picked up in resolution. ifort gives [pault@localhost pr55789]$ ifort ../pr55362/p*.f90../pr55362/pr55362.f90(3): error #6423: This name has already been used as an external function name. [ERROR_MSG] write(*,*) 'message: ', size(Error_Msg),Error_Msg() -------------------------------^ ../pr55362/pr55362.f90(3): error #6361: An array-valued argument is required in this context. [SIZE] write(*,*) 'message: ', size(Error_Msg),Error_Msg() -------------------------------^ compilation aborted for ../pr55362/pr55362.f90 (code 1)