<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57060>57060</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Error thrown while compiling lib/Transforms/Scalar/FPG.cpp with clang++
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
BalaRishi-AMD
</td>
</tr>
</table>
<pre>
The below error is faced while building llvm (during compilation of llvm-project/llvm/lib/Transforms/Scalar/FPG.cpp) using llvm:
/home/amd/llvm-project/llvm/lib/Transforms/Scalar/FPG.cpp:1991:88: error: expected '{' after '\N' escape sequence
This issue was **introduced between 2022-06-21 and 2022-06-30.**
Reduced issue reproducer is given below:
_$ cat hello.cpp_
#include <iostream>
int main() {
std::cout << "Hello \N \n";
return 0;
}
_$ $compilerspath/DT2022_06_21/bin/clang++ hello.cpp && ./a.out_
hello.cpp:3:25: warning: unknown escape sequence '\N' [-Wunknown-escape-sequence]
std::cout << "Hello \N \n";
^~
1 warning generated.
Hello N
## The above is older llvm build. The below is a recent one
_$ $compilerspath/DT2022_06_30/bin/clang++ hello.cpp && ./a.out_
**hello.cpp:3:25: error: expected '{' after '\N' escape sequence**
std::cout << "Hello \N \n";
^~
1 error generated.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1VFFv2yAQ_jXkBcXCUMfJgx_Spt1eVk1bpT1W2FxiNgIe4Gb79ztM2qRbpWmtZmHs4-C4-767a5362RC2IWx91wNtwbgDBe-dpzrQrexA0UOvDapGbZS2O2rMw54SvlSjT2Ln9oM2MmpnqdtO2vng3VfoIuE3SUwf3eJ856UNW-f3AYXPnTTS48_Nx3dFNwyEr-gYHi8gYp29wg292wN-5F4dDb7OvliXq1WJn-USpxzk9PNjQFsYJ-E1qS9xpnIbwU9ydXWbFiB0cgAa4PsItoOja0fYECgdwgj0IAMeQpfX2kbv1JjQayEeACzljPM5W8x5SaVVT6JgRT5ybjPPnyBbyMY9DNnkxMxOP6DNia4TVNN8T_gF7WSkPRjjUuT3j0gKbTszKqBEXGkXogeJQF9nNbpM91JbZDZRkZCY1ik-Iap0i1h3bozpNA6MlL9PV9AEUprwKCfi7JiHOHpL2dMiqTd_uIpvTiHwYZCxR8Y2dwmde7a45yWKbXLqpjPS7ghHfi7pKTaK5xc4aJEypED3jtE-7UCvBb68SlwfpLeYYul3tN-sO9jfqT1nnVSX8y_HffO8b_6UAtXmzfi89JDqmtRHSspHf-kOLHiJSVpkTTZ8-yxnuMBBUxXL1j1AyhJnFKbLVLBT-Rb0VOSolshQB8i7s_BvvAj2Wl5ysr_MzptK8qyI_isluTmeCJlBUy4WrKwEr6qZaoRaiZWcRR0NNNfT5tj7lGm5j2ZQpz7396ZFDzr29Azi2ehN08c4hBQdv8Gxwy1jW6Dds374vEtOHSTZr2q2YLO-UQJKtSorVZeyrOqS11vRoVAvy25Zb5czIzFLQoMVgAhZOOQmlNCqNjPdpDxgy5KV9QWrRCGEZBJaJtC8ULUiFwywl5gi-VE4v5v5ZnKpHXcBlUaHGE5KGYLeWYDpOrQvx9g731wiFp906PV8_QEvTQ40UwC_ADK5-aM">