================ @@ -76,10 +76,33 @@ struct S { struct SVS : public VS { void vm() { } }; + + struct CS { + CS() {} + CS(bool a) {} + CS(int b) {} // expected-warning{{unused constructor 'CS'}} + CS(float c); + }; + + struct DCS : public CS { + DCS() = default; // expected-warning{{unused constructor 'DCS'}} + DCS(bool a) : CS(a) {} // expected-warning{{unused constructor 'DCS'}} ---------------- tbaederr wrote:
Is the name of the constructor actually useful in this diagostic? It will always be the name of the surrounding class, won't it? https://github.com/llvm/llvm-project/pull/84515 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits