kaimfrai

Results issues of kaimfrai

Since non-inline external definitions in header units were disallowed in [commit/335668b](https://github.com/llvm/llvm-project/commit/335668b116439d13c7555616e126acdc608ce59e), using standard header units has become impractical. In particular, the example given at https://clang.llvm.org/docs/StandardCPlusPlusModules.html#header-units ```shell clang++ -std=c++20 -xc++-system-header --precompile...

clang:modules

The following code works fine in Clang 16 (and 15 with `-fexperimental-library`) when using an include ```cpp // main.cpp // clang++-16 -std=c++20 -stdlib=libc++ main.cpp #include int main() { int arr[]{...

question
libc++
clang:modules

A recent update in Clang 17 made the following code no longer compile: ```c++ // clang++-17 -std=c++20 -stdlib=libc++ --precompile -xc++-system-header ranges -o ranges.pcm // clang++-17 -std=c++20 -stdlib=libc++ main.cpp -fmodule-file=ranges.pcm import...

libc++

This may or may not be related to #61425. I have some meta-programming facilities that do the following: A templated `constexpr` variable calls a yet to be defined function via...

clang:modules

Given a simple switch which uses the constant 1.0f in case 0, the optimization is different than with any another constant, e.g. 0.0f. ``` #include auto Switch(long i, float f)...

llvm:optimizations
missed-optimization
floating-point

The following example compiles with Clang 17 but not in Clang 18 (since approximately 1 week): ```cpp template concept True = true; template struct Template { static constexpr int i...

c++20
clang:frontend
concepts
confirmed

The following code crashes on the most recent clang trunk when compiling with `-std=c++2c`. The intent is to transform a pack of types into two sub-packs using the new pack...

clang:codegen
crash
c++26

The following code erroneously results in a double free/delete being generated for the move assignment operator. It's a simplified version of a customizable dynamic array template: One version would simply...

question
clang

I've been trying to reduce intrinsic-dependent code for SIMD and rely more on compiler optimizations. With structured binding packs this becomes very terse, easy to read and generic. This is...

clang

The following code dumps on Clang23 and up: ```c++ struct S { // OK //auto operator++() & -> S& //S& (operator++)() & // Crash auto (operator++)() & -> S& {...

crash
clang:temporal-safety