This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/1773: __cplusplus defined to 1, should be 199711L



>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:
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]