[Bug fortran/47633] New: Result of COMPILER_VERSION() has NULL byte appended
thenlich at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Mon Feb 7 13:42:00 GMT 2011
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
More information about the Gcc-bugs
mailing list