cor3ntin reopened this revision. cor3ntin added a comment. This revision is now accepted and ready to land.
There is still an ODR issue which caused linkers errors I think I managed to reduce the issue to template <typename T> struct function_ref { function_ref(auto) {} }; struct S { function_ref<int> X = nullptr; }; void Do(S = {}) { } int main() { Do(); } We mark nullptr odr used but that does not mark `function_ref<int>::function_ref()` ODR used. We should make sure that's properly marked once the constructor call is resolved. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136554/new/ https://reviews.llvm.org/D136554 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits