C code fails to compile with stdcxx
-----------------------------------

                 Key: STDCXX-710
                 URL: https://issues.apache.org/jira/browse/STDCXX-710
             Project: C++ Standard Library
          Issue Type: Improvement
    Affects Versions: 4.2.0, 4.1.3, 4.1.2
         Environment: All
            Reporter: Farid Zaripov
            Assignee: Farid Zaripov
            Priority: Trivial
             Fix For: 4.2.1


The boost regression tests contains some .c files, which are failed to compile 
with stdcxx.

The example:

----------------------------------
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>

int main ()
{
    return 0;
}
----------------------------------

  The build log on MSVC:

----------------------------------
test.cpp
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : 
identifier '__rw'
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : 
';'
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at 
file scope (missing function header?)
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : 
'}'
----------------------------------


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to