Xref: utzoo comp.lang.fortran:4753 comp.os.msdos.programmer:3340 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!shelby!unix!MPLVAX.SRI.COM!HUESTIS From: HUESTIS@MPLVAX.SRI.COM (David L. Huestis) Newsgroups: comp.lang.fortran,comp.os.msdos.programmer Subject: MS-FORTRAN bug in string concatenation Message-ID: <2PWGG2@MPLVAX.SRI.COM> Date: 13 Feb 91 17:55:13 GMT Sender: news@unix.SRI.COM Followup-To: comp.lang.fortran Organization: Molecular Physics Laboratory, SRI International, Menlo Park, CA Lines: 11 Under Microsoft FORTRAN the following simple program character string*4/'abc'/ string = '*'//string write(*,*)string end produces the output '**bb' while LAHEY and VAX yield '*abc' Microsoft FORTRAN takes no precautions against the source strings overlapping the destination string.