stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Created: (STDCXX-326) std::ios_base::io_state not an integer type
Date Fri, 19 Jan 2007 21:37:30 GMT
std::ios_base::io_state not an integer type

                 Key: STDCXX-326
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 27. Input/Output
    Affects Versions: 4.1.2, 4.1.3
         Environment: all
            Reporter: Martin Sebor

depr.ios.members, p2 requires that std::ios_base::io_state be an integer type. The program
below fails to compile,  indicating that in stdcxx it is not:

$ cat t.cpp && make t
#include <ios>

int main ()
    const int i = 1;
    std::ios_base::io_state s = i;

eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG    -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include
-I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform
-I/build/sebor/PlumHall/lvs06a/dst.3  -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib
-g  --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815
--diag_suppress 177,381,191,68,550,611,997,549   t.cpp
"t.cpp", line 6: error #144: a value of type "int" cannot be used to
          initialize an entity of type "std::ios_base::io_state"
      std::ios_base::io_state s = i;

1 error detected in the compilation of "t.cpp".
make: *** [t.o] Error 2

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message