Issue 87811
Summary Document implementation-defined behavior with UCN escape sequences in C
Labels documentation, c99
Assignees
Reporter AaronBallman
    A universal character name (UCN) is a kind of escape sequence. C99 6.4.4.4p10 has this to say: ... The value of an integer character constant containing more than one character (e.g., 'ab'), or containing a character or escape sequence that does not map to a single-byte execution character, is implementation-defined. ...

Clang [defines the implementation-defined behavior](https://github.com/llvm/llvm-project/blob/c7eede5d4c1c8e0c20337f3f3c9003f59fe5ccd5/clang/lib/Lex/LiteralSupport.cpp#L1734) in C to be the same as the [required behavior](https://eel.is/c++draft/lex.ccon#3.1.sentence-2) in C++.

We should document this outside of the source code.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to