public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/47633] New: Result of COMPILER_VERSION() has NULL byte appended
@ 2011-02-07 13:42 thenlich at users dot sourceforge.net
  2011-02-07 16:12 ` [Bug fortran/47633] " kargl at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: thenlich at users dot sourceforge.net @ 2011-02-07 13:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47633

           Summary: Result of COMPILER_VERSION() has NULL byte appended
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: thenlich@users.sourceforge.net


The string returned by the COMPILER_VERSION function of the ISO_FORTRAN_ENV
module has a NULL byte at the last character position.

Expected result: Just the string, without the extra null byte.

PROGRAM TESTENV
    USE ISO_FORTRAN_ENV
    CHARACTER(LEN=256) V
    INTEGER L
    V = COMPILER_VERSION()
    L = LEN(COMPILER_VERSION())
    PRINT "(A)", V(1:L-1)
    PRINT *, ICHAR(V(L:L))
END PROGRAM TESTENV

GCC version 4.6.0 20110205 (experimental) [trunk revision 169855]
           0


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

end of thread, other threads:[~2011-02-15 19:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-07 13:42 [Bug fortran/47633] New: Result of COMPILER_VERSION() has NULL byte appended thenlich at users dot sourceforge.net
2011-02-07 16:12 ` [Bug fortran/47633] " kargl at gcc dot gnu.org
2011-02-07 16:20 ` jakub at gcc dot gnu.org
2011-02-07 17:49 ` sgk at troutmask dot apl.washington.edu
2011-02-07 18:10 ` jakub at gcc dot gnu.org
2011-02-07 19:13 ` burnus at gcc dot gnu.org
2011-02-07 19:37 ` sgk at troutmask dot apl.washington.edu
2011-02-13  0:05 ` tkoenig at gcc dot gnu.org
2011-02-13  0:51 ` sgk at troutmask dot apl.washington.edu
2011-02-14 17:25 ` burnus at gcc dot gnu.org
2011-02-15 19:39 ` kargl at gcc dot gnu.org
2011-02-15 19:46 ` kargl at gcc dot gnu.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).