public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58781] New: Unicode strings broken in a strange way
@ 2013-10-18  8:08 mustrumr97 at gmail dot com
  2013-10-21 16:37 ` [Bug c++/58781] " 3dw4rd at verizon dot net
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mustrumr97 at gmail dot com @ 2013-10-18  8:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58781
           Summary: Unicode strings broken in a strange way
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mustrumr97 at gmail dot com

#include <cstddef>
int operator""_s(const char32_t *a, size_t b){
    return 0;
}
int f(){
    using a=decltype(U"\x1181"_s);
    using b=decltype(U"\x8111"_s);
    using c=decltype(U" \x1181"_s);
}
On the lines defining b and c:
error: converting to execution character set: Invalid or incomplete multibyte
or wide character

- The expression must be inside decltype()
- The expression must have a suffix
- The hex escape sequence must have a digit >= 8 at some specific places. The
places depend on the length of the escape sequence and if there are surrounding
characters.
- The same happens if there's a unicode character instead of an escape
sequence.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-07-01  5:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18  8:08 [Bug c++/58781] New: Unicode strings broken in a strange way mustrumr97 at gmail dot com
2013-10-21 16:37 ` [Bug c++/58781] " 3dw4rd at verizon dot net
2013-10-21 18:13 ` 3dw4rd at verizon dot net
2013-10-21 20:25 ` 3dw4rd at verizon dot net
2013-10-30 13:32 ` redi at gcc dot gnu.org
2014-06-27 21:04 ` 3dw4rd at verizon dot net
2014-07-01  3:14 ` emsr at gcc dot gnu.org
2014-07-01  5:31 ` emsr at gcc dot gnu.org
2014-07-01  5:33 ` emsr at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).