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: unassig...@gcc.gnu.org
        ReportedBy: thenl...@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

Reply via email to