[cfe-dev] ios_base.h:96:24: runtime error: load of value 4294967221which is not a valid value for type 'std::_Ios_Fmtflags'
    Jeffrey Walton 
    noloader at gmail.com
       
    Tue Jan  6 19:41:22 PST 2015
    
    
  
I know this has been discussed before:
    ios_base.h:96:24: runtime error: load of value 4294967221, which
is not a valid value for type 'std::_Ios_Fmtflags'
and
    ios_base.h:80:67: runtime error: load of value 4294967221, which
is not a valid value for type 'std::_Ios_Fmtflags'
Line 96 offender is the return:
      inline _Ios_Fmtflags&
      operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
      { return __a = __a & __b; }
Line 80 offender is the return:
      inline _Ios_Fmtflags
      operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
      { return _Ios_Fmtflags(static_cast<int>(__a) & static_cast<int>(__b)); }
For example, http://lists.cs.uiuc.edu/pipermail/llvmbugs/2013-December/031638.html,
http://llvm.org/bugs/show_bug.cgi?id=18156 and
https://www.marshut.net/suwhu/undefined-behavior-sanitizing-with-clang.html.
But I can't seem to find the solution (only hits on the problem).
Clang has been tagging it for a couple of years now. I'd like to clear
the error on my MacBook (OS X 10.8.5, fully patched).
What is the resolution?
Thanks in advance.
*****
$ /usr/local/bin/clang++ -v
clang version 3.5.0 (tags/RELEASE_350/final)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
    
    
More information about the cfe-dev
mailing list