https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365
--- Comment #11 from Andris Pavenis <andris at gcc dot gnu.org> --- OK. New version: 20220203-1.cpp: In function 'int main()': 20220203-1.cpp:19:24: warning: suspicious use of overloaded 'Test(const char [4], const char[4])' 21 | Test test("foo", "bar"); | ^ 20220203-1.cpp:12:5: note: chosen candidate: 'Test::Test(const string&, bool)' 12 | Test(const std::string&, bool) | ^~~~ 20220203-1.cpp:7:5: note: candidate: 'Test::Test(const string&, const std::string&)' 7 | Test(const std::string&, const std::string&) | ^~~~ [tag] [reply] [−]Comment 7 Also suggestion 'could appear ambiguous ...' instead of 'suspicious use ...' is OK for me. I have no special preferences here.