[clang] [clang-tools-extra] [clang][bytecode] Don't evaluate bound member function expressions in new constant interpreter (PR #194851)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 30 02:02:32 PDT 2026
cakgok wrote:
> ```shell
> $ echo "-std=c++23 -fexperimental-new-constant-interpreter" > compile_flags.txt
> $ echo "struct S { void f(); }; void g() { S s; s.f(); }" > t.cpp
> $ bin/clangd --check=t.cpp
> ```
>
> Does not reproduce here
I think it's because compile_flags.txt expects one flag per line.
-fexperimental-new-constant-interpreter doesn't get parsed like this.
Could you try with
```bash
printf '-std=c++23\n-fexperimental-new-constant-interpreter\n' > compile_flags.txt
echo "struct S { void f(); }; void g() { S s; s.f(); }" > t.cpp
bin/clangd --check=t.cpp
```
https://github.com/llvm/llvm-project/pull/194851
More information about the cfe-commits
mailing list