https://github.com/Sirraide commented: I still think it makes more sense to diagnose this when the FunctionDecl is created rather than when we try and return from it. https://github.com/llvm/llvm-project/pull/127623