c++/1773: __cplusplus defined to 1, should be 199711L
Jens.Maurer@gmx.net
Jens.Maurer@gmx.net
Thu Jan 25 13:26:00 GMT 2001
>Number: 1773
>Category: c++
>Synopsis: __cplusplus defined to 1, should be 199711L
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 25 13:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Jens Maurer
>Release: gcc version 2.97 20010125 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu with glibc 2.2
>Description:
The following program prints "1", but it should print
"199711", because __cplusplus should be so defined
according to ISO C++ section 16.8 [cpp.predefined].
>How-To-Repeat:
#include <stdio.h>
int main()
{
printf("%ld\n", __cplusplus);
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list