Community
Participate
Working Groups
CDT gives an error when the name of a constructor does not match the name of the class: struct A { B(); // syntax error }; However, it does not give a similar error for a destructor: struct A { ~B(); // no error }; For consistency, I think CDT should give an error in both cases.
I agree. Added testcase and fix.