Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-710

C code fails to compile with stdcxx

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 4.1.2, 4.1.3, 4.2.0
    • 4.3.0
    • None
    • None
    • All

    • Patch Available
    • Compiler Error

    Description

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

      Attachments

        1. stdcxx-710.patch
          4 kB
          Farid Zaripov

        Activity

          People

            Unassigned Unassigned
            farid Farid Zaripov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h