From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27979 invoked by alias); 19 Jun 2006 22:16:13 -0000 Received: (qmail 27951 invoked by uid 48); 19 Jun 2006 22:16:05 -0000 Date: Mon, 19 Jun 2006 22:27:00 -0000 Message-ID: <20060619221605.27950.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/27784] [4.1 only] Comparison of strings with char(0) 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-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg01787.txt.bz2 List-Id: ------- Comment #4 from fxcoudert at gcc dot gnu dot org 2006-06-19 22:16 ------- This was fixed on mainline by: r114175 | tkoenig | 2006-05-28 22:25:15 +0200 (Sun, 28 May 2006) | 11 lines 2006-05-28 Thomas Koenig * intrinsics/string_intrinsics.c (compare_string): Use memcmp instead of strncmp to avoid tripping over CHAR(0) in a string. 2006-05-28 Thomas Koenig * gfortran.dg/string_null_compare_1.f: New test case. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Known to fail| |4.1.2 Known to work| |4.2.0 Summary|Comparison of strings with |[4.1 only] Comparison of |char(0) |strings with char(0) Target Milestone|--- |4.1.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27784