-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for
loop crashes the kernel
#85
Comments
std::vector
crashes the kernelfor
loop crashes the kernel
❯ ./clang-repl
clang-repl> for (int i = 0; i < 5; i++) {}
clang-repl: /home/vipul/Workspace/cpp-py/compiler-research/llvm-project/clang/lib/CodeGen/CGDecl.cpp:160: void clang::CodeGen::CodeGenFunction::EmitDecl(const clang::Decl&): Assertion `VD.isLocalVarDecl() && "Should not see file-scope variables inside a function!"' failed. |
Please open a bug against upstream llvm. I remember fixing similar problems upstream |
LLVM 19 does not crash with the
Not required till we test with LLVM 19, I guess. EDITED The |
@vgvassilev I guess we can close this issue. And put a remake saying only LLVM 19 is supported. And update the README. |
I am not sure I understand how this is an issue for clad? |
If we use LLVM 19 and compile xeus-clang-repl, the |
EDITED:
Any
for
loop crashes the kernel. Example:ORIGINAL ISSUE FILED:
The following code snippet crashes the kernel with 11, 14 & 17 stdc++:
But the following runs fine:
The text was updated successfully, but these errors were encountered: