MatzeB wrote: Indeed that GCC bug would be a problem. I could publish a follow-up that requires GCC >= 14 to use the retain attribute, do you know if that would be sufficient here? https://github.com/llvm/llvm-project/pull/133025