[Bug libstdc++/48340] Several wchar_t tests FAIL on IRIX 6.5

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 30 11:27:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48340

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.03.30 11:07:13
     Ever Confirmed|0                           |1

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-30 11:07:13 UTC ---
Are you using a specific configure value for --enable-clocale or just using the
default "generic" model?

What about this test, I assume the assertion fails:

#include <locale>
#include <assert.h>

int main()
{
    struct ctype : std::ctype<wchar_t>
    {
        bool test()
        {
            return this->is(std::ctype_base::space, L' ');
        }
    } c;

    assert( c.test() == iswctype(L' ', wctype("space")) );
}


What is the value of _ISspace in /usr/include/ctype.h ?
If it's greater than (1<<15) that would explain it



More information about the Gcc-bugs mailing list