From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2670 invoked by alias); 30 May 2007 13:41:49 -0000 Received: (qmail 2654 invoked by uid 48); 30 May 2007 13:41:39 -0000 Date: Wed, 30 May 2007 13:41:00 -0000 Subject: [Bug fortran/32155] New: Unresolved external __gfortran_os_error in program that manipulates strings X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "KnowlesPJ at Cardiff dot ac dot uk" 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-05/txt/msg02696.txt.bz2 In the following code, __gfortran_os_error is thrown as unresolved at link time. The trouble goes away if //'=0' is removed. $ cat silly.f character(16) :: str,namx len=4 namx='abcdefg' str=' ' str(7:)=namx(1:len)//'=0' write (6,*) str end $ gfortran silly.f /usr/bin/ld: Undefined symbols: __gfortran_os_error collect2: ld returned 1 exit status $ gfortran -v Using built-in specs. Target: i386-apple-darwin8.9.1 Configured with: ../gcc-4.3-20070518/configure --enable-languages=fortran --enable-static --disable-shared Thread model: posix gcc version 4.3.0 20070518 (experimental) $ uname -a Darwin Peter-Knowles-MacBook.local 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386 i386 i386 -- Summary: Unresolved external __gfortran_os_error in program that manipulates strings Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: KnowlesPJ at Cardiff dot ac dot uk GCC build triplet: i386-apple-darwin8.9.1 GCC host triplet: i386-apple-darwin8.9.1 GCC target triplet: i386-apple-darwin8.9.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32155