[Bug c++/88507] utf8 not displayed
jg at jguk dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 17 15:08:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88507
--- Comment #4 from Jonny Grant <jg at jguk dot org> ---
Clang has an appropriate message and displays the UTF8 okay.
GCC just needs to catch up with clang on this one...
#1 with x86-64 clang (trunk)
<source>:8:7: error: non-ASCII characters are not allowed outside of literals
and identifiers
st£ing buf;
^
<source>:8:5: error: unknown type name 'st'
st£ing buf;
^
<source>:8:12: error: expected ';' at end of declaration
st£ing buf;
^
;
<source>:10:5: error: use of undeclared identifier 'buf'
buf = "£"
^
4 errors generated.
Compiler returned: 1
More information about the Gcc-bugs
mailing list