From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31907 invoked by alias); 8 Feb 2010 10:44:42 -0000 Received: (qmail 31873 invoked by uid 48); 8 Feb 2010 10:44:30 -0000 Date: Mon, 08 Feb 2010 10:44:00 -0000 Subject: [Bug libfortran/42996] New: Incorrect length returned from get_command_argument intrinsic X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ian_harvey at bigpond dot com" 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: 2010-02/txt/msg00673.txt.bz2 According to the F2003 standard, the LENGTH argument does "not consider any possible truncation or padding in assigning the command argument value to the VALUE argument" (13.7.42). However, gfortran appears to use the minimum of the length of the VALUE argument (if present) and the length of the command argument. (svn revision 156557) -- Summary: Incorrect length returned from get_command_argument intrinsic Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ian_harvey at bigpond dot com GCC build triplet: i686-pc-mingw32 GCC host triplet: i686-pc-mingw32 GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42996