efriedma-quic wrote: And a few more:
``` constexpr auto& type(const PolyBase& b) { return typeid(b); } // dynamic_cast constexpr const void* dyncast(const PolyBase& b) { return dynamic_cast<const void*>(&b); } constexpr int sub(int (&a)[], int (&b)[]) { return a-b; } constexpr int* add(int &a) { return &a+10; } ``` I'll take another look at this... but I think we just have to explicitly suppress the diagnostic in all the relevant cases. Which is a bit of a pain, but I don't see an alternative. https://github.com/llvm/llvm-project/pull/149227 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits