https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104030
--- Comment #7 from Stephan Bergmann <sbergman at redhat dot com> --- (In reply to Jakub Jelinek from comment #2) > Of course, if something like libreoffice (I bet) carefully ensures it is > paired, but constructs it from smaller separate literals, then it is fine. (Or doesn't even need to ensure that e.g. a LRO is paired with a PDF, as my understanding of <https://www.unicode.org/reports/tr9/tr9-44.html> "Unicode Bidirectional Algorithm" is that such an LRO doesn't require a matching PDF, in which case its effect extends to the end of the paragraph, which appears to be what the example LibreOffice code in comment 0 makes use of.)