public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32155]  New: Unresolved external __gfortran_os_error in program that manipulates strings
@ 2007-05-30 13:41 KnowlesPJ at Cardiff dot ac dot uk
  2007-05-30 13:43 ` [Bug fortran/32155] " KnowlesPJ at Cardiff dot ac dot uk
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: KnowlesPJ at Cardiff dot ac dot uk @ 2007-05-30 13:41 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-13 20:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-30 13:41 [Bug fortran/32155] New: Unresolved external __gfortran_os_error in program that manipulates strings KnowlesPJ at Cardiff dot ac dot uk
2007-05-30 13:43 ` [Bug fortran/32155] " KnowlesPJ at Cardiff dot ac dot uk
2007-05-31  0:05 ` jvdelisle at gcc dot gnu dot org
2007-05-31 11:54 ` fxcoudert at gcc dot gnu dot org
2007-05-31 11:58 ` KnowlesPJ at Cardiff dot ac dot uk
2007-06-13 20:45 ` fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).