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

Reply via email to