david-xl wrote: For the small example you have, I noticed that using libstdc++ produces clean code. Is the root cause of the size increase with std::variant in libc++'s implementation? https://github.com/llvm/llvm-project/pull/77709