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

[EDG eccp] mbstate_t not defined in <wchar.h>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.2.1
    • 4.2.2
    • 21. Strings
    • None
    • EDG eccp 3.9

    • Compiler Error

    Description

      The program below fails to compile with eccp 3.9 with the head of 4.2.x (and most likely 4.2.1):

      $ cat t.cpp && make t
      #include <wchar.h>
      
      int main ()
      {
          mbstate_t st;
      }
      eccp -A -x --template_directory=/build/sebor/stdcxx-4.2.x-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815  -I/home/sebor/stdcxx-4.2.x/include/ansi -D_RWSTDDEBUG    -I/home/sebor/stdcxx-4.2.x/include -I/build/sebor/stdcxx-4.2.x-eccp-3.9-11s/include -I/home/sebor/stdcxx-4.2.x/examples/include  --template_directory=/build/sebor/stdcxx-4.2.x-eccp-3.9-11s/lib    -L/build/sebor/stdcxx-4.2.x-eccp-3.9-11s/lib   t.cpp  -lstd11s  -lm -o t
      "t.cpp", line 5: error #20: identifier "mbstate_t" is undefined
            mbstate_t st;
            ^
      
      "t.cpp", line 5: warning #177-D: variable "st" was declared but never
                referenced
            mbstate_t st;
                      ^
      
      1 error detected in the compilation of "t.cpp".
      make: *** [t] Error 2
      

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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