Closed guyin456 closed 6 days ago
@llvm/issue-subscribers-clang-frontend
Author: None (guyin456)
You should attach the processed files to the issue, otherwise we have no idea what particular bug it is.
You should attach the processed files to the issue, otherwise we have no idea what particular bug it is.
Ok no problem, here is my preprocessed file(bug_report.txt==>bug_report.ii), bug_report.txt
You can reproduce it with the following command:
clang-17.0.6/bin/clang++ bug_report.ii
Could you please try 19 or main
branch?
It compiles fine for me here with clang 17.0.6. Note that clang 17.0.6 is not the newest version, the latest released version is 18.1.8 (https://github.com/llvm/llvm-project/releases/tag/llvmorg-18.1.8), while the most recent 19.1.0 release candidate is 19.1.0 rc4 (https://github.com/llvm/llvm-project/releases/tag/llvmorg-19.1.0-rc4).
Are you getting the error consistently in the same place? Do you see any out-of-memory errors in dmesg, or other indicators of memory corruption?
使用 clang 17.0.6 编译对我来说没问题。请注意,clang 17.0.6 不是最新版本,最新发布的版本是 18.1.8 ( https://github.com/llvm/llvm-project/releases/tag/llvmorg-18.1.8 ),而最新的 19.1.0 候选版本是 19.1.0 rc4 ( https://github.com/llvm/llvm-project/releases/tag/llvmorg-19.1.0-rc4 )。
您是否总是在同一个地方收到错误?您是否在 dmesg 中看到任何内存不足错误,或者其他内存损坏指示?
OK, I tried it again. Since my clang is optimized with PGO and BOLT, there will be no problem using the original version of clang 17.0.6.
I updated to the newest version of Clang 17.0.6 ( 79fffa20ed39ec9ef0ddc51e6d2e95975bc25d2d) and we are getting a frontend error. Compiler output: