[Bug c++/89793] New: Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3

2019-03-21 Thread duyang.seu at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: duyang.seu at gmail dot com Target Milestone: --- Created attachment 46006 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46006&action=edit the preprocessed fi

[Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3

2019-03-22 Thread duyang.seu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89793 --- Comment #2 from du yang --- Created attachment 46009 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46009&action=edit GCC 7.3.1 source file dump GCC version: gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC) System Type: CentOS Linu

[Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3

2019-03-23 Thread duyang.seu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89793 --- Comment #8 from du yang --- > > struct Message { > template > Message(T&& t) : s{t} { } > string s; > }; > By the way, it works on both GCC 8 & 7, if change the code above as below (change to use assignment), struct Message {