In clang-query, how to match a reference variable by the qualifiers of its object?
For example, how to match the reference to const here:
In clang-query, how to match a reference variable by the qualifiers of its object?
For example, how to match the reference to const here:
Clang 15+ with -O3 optimisation causing infinite loop with casting packed structs
I’ve been trying to resolve an issue I’ve come across when upgrading from Clang 14, where it appears that the compiler seems to be declaring that a pointer is out of scope, which causes the original data to be deallocated/overwritten.
Why does Clang fail to compile a deduced this conversion operator in C++23, while GCC compiles it successfully?
I’m working with the new C++23 deducing this feature to create an implicit conversion operator that adjusts based on the value category of the object being converted (lvalue or rvalue). I’ve noticed that GCC compiles my code without any issues, but Clang fails with an error when trying to bind an lvalue reference.
Use a lambda which captures this to initialize a struct member cause a segment fault in clang?
I use a lambda which captures this
to initialize the struct member std::function f
. The program is expected to print 9
, but got a Segmentation fault
.
Undefined reference with requires expression using clang++
I have this test-code which compiles fine with g++ version 13.2 as well as clang++ until version 17. It fails to compile with clang++ version 18.
Is the code valid?
how to fix “The preLaunchTask ‘C/C++: clang++ build active file’ terminated with exit code -1.”
im very new to c++ and every time i try to compile and run a program, the error “The preLaunchTask ‘C/C++: clang++ build active file’ terminated with exit code -1.”
shows up. Im using vs code on a apple silicone mac with clang compiler, and the code that i was trying to run was
‘iostream’ file not found clang(pp_file_not_found) errror
I’ve installed vscodium on my windows 10 pc. I’ve installed vscodium on my laptop before which is ubuntu linux so I assumed the process was straight forward. the problem I find is one of the extension’s Clangd doesn’t recognize my header file specifically <iostream> but also almost every c++ is not recognized. is there a way to change the extension itself to redirect the path where my header files are located?
clang++: error: linker command failed with exit code 1 while compiling test with clang17
Recently I tried to compile a simple program test.cpp with clang17 but got an error: linker command failed with exit code 1
clang unknown type name ‘jthread’
I am running the following code