https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365

--- Comment #6 from Andris Pavenis <andris at gcc dot gnu.org> ---
Suggested format (changed types to get real ambiguity and edited generated
message):

20220203-1.cpp: In function 'int main()':
20220203-1.cpp:19:24: warning: call of overloaded 'Test(const char [4],
unsigned 
char[4])' is ambiguous
   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&)
      |     ^~~~

Reply via email to