cor3ntin added a comment. In D136554#3909488 <https://reviews.llvm.org/D136554#3909488>, @dblaikie wrote:
> fwiw, @rsmith came up with a crasher reproducer from this patch here: > > template<typename T> struct F { > template<typename U> F(const U&) {} > }; > > struct A { > static constexpr auto x = [] {}; > F<int> f = x; > }; > > void f(A a = A()) { } > > int main() { > f(); > } > > This was still failing at52ffc728181bc2d3c889f7f80c252c3433b9e7b6 immediately > prior to the revert. This is very helpful, thanks to both Richard and you. Both issues seem to be related somewhat, there are scenarios in which entities are not marked odr used properly. The other bug is still reducing, hopefully I'll have a test case for it tomorrow. I don't expect to be able to fix the issue in the next couple of weeks though 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