This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/1773: __cplusplus defined to 1, should be 199711L
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/1773: __cplusplus defined to 1, should be 199711L
- From: Jens dot Maurer at gmx dot net
- Date: 25 Jan 2001 21:22:45 -0000
- Reply-To: Jens dot Maurer at gmx dot net
>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: