alexfh added a comment. Reduced test case:
template <class a> void b(a); template <typename c> class d { public: class e { public: c *f(); }; e *g(); }; template <class> class j; template <class h, class... i> class j<h(i...)> { public: class k { public: k(int *); ~k(); }; int n(); d<int *> l; }; template <class h, class... i> int j<h(i...)>::n() { auto m = l.g()->f(); k a(*m); b(a); } template <class h, class... i> j<h(i...)>::k::~k() __attribute__((annotate(""))) {} class o { int m_fn4(); j<int()> p; }; int o::m_fn4() { p.n(); } Please revert the commit if there is no quick and obvious solution. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D111109/new/ https://reviews.llvm.org/D111109 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits