On Sun, Oct 11, 2009 at 7:31 AM, Paolo Carlini <paolo.carl...@oracle.com> wrote: > Hi Beman >> http://gcc.gnu.org/projects/cxx0x.html shows Unicode string literals (N2442) >> as >> being supported in gcc 4.4. But this little program fails to compile: >> >> #include <iostream> >> int main() >> { >> std::cout << u8"foo" << std::endl; >> } >> > ... >> Is this a bug in gcc? A bug in the C++0x Support page? A bug in my test? >> > To my best knowledge the feature is not implemented at all, thus a bug > in the C++0x Support page.
Actually the front-end support is implemented but it is just u"foo" (for UTF-8) and U"foo" (for UTF-16). The library support is not there though and you just get operator<<(void const*) . Thanks, Andrew Pinski