[Bug c++/32240] wstring::length() does not work properly with --short-wchar

2007-06-07 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-06-07 09:14 --- This is neither a GCC bug or a glibc bug as -fshort-wchar changes the ABI. The documentation already mentions this: Warning: the -fshort-wchar switch causes GCC to generate code that is not binary compatible with cod

[Bug c++/32240] wstring::length() does not work properly with --short-wchar

2007-06-07 Thread pcarlini at suse dot de
--- Comment #1 from pcarlini at suse dot de 2007-06-07 08:51 --- (In reply to comment #0) > std::wstring wstr = L"Hello, World!"; A couple of clarifications. First, your way of using --short-wchar cannot work in principle, because std::string functions are exported from the inst