c++: Use %qs in diagnostic message [PR93882]