https://github.com/Fznamznon commented:

I wonder if we should always emit an error when a function with non-void return 
type doesn't have a return statement? In any case it is a serious yet dumb bug 
that will lead to problems and perhaps some time spent debugging it.
gcc rejects the case for C++23 as well https://godbolt.org/z/8xq8TdEGE . 
cc @AaronBallman 

https://github.com/llvm/llvm-project/pull/94123
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to