Re: C++ PATCH for c++/87357, missing -Wconversion warning

2018-09-19 Thread Martin Sebor
On 09/19/2018 10:02 AM, Marek Polacek wrote: On Wed, Sep 19, 2018 at 09:51:44AM -0600, Martin Sebor wrote: On 09/18/2018 09:47 PM, Marek Polacek wrote: As I mentioned in the PR, [class.conv.fct] says "A conversion function is never used to convert a (possibly cv-qualified) object to the (possib

Re: C++ PATCH for c++/87357, missing -Wconversion warning

2018-09-19 Thread Jason Merrill
On Tue, Sep 18, 2018 at 11:47 PM, Marek Polacek wrote: > As I mentioned in the PR, [class.conv.fct] says "A conversion function is > never > used to convert a (possibly cv-qualified) object to the (possibly > cv-qualified) > same object type (or a reference to it), to a (possibly cv-qualified) b

Re: C++ PATCH for c++/87357, missing -Wconversion warning

2018-09-19 Thread Marek Polacek
On Wed, Sep 19, 2018 at 09:51:44AM -0600, Martin Sebor wrote: > On 09/18/2018 09:47 PM, Marek Polacek wrote: > > As I mentioned in the PR, [class.conv.fct] says "A conversion function is > > never > > used to convert a (possibly cv-qualified) object to the (possibly > > cv-qualified) > > same obj

Re: C++ PATCH for c++/87357, missing -Wconversion warning

2018-09-19 Thread Martin Sebor
On 09/18/2018 09:47 PM, Marek Polacek wrote: As I mentioned in the PR, [class.conv.fct] says "A conversion function is never used to convert a (possibly cv-qualified) object to the (possibly cv-qualified) same object type (or a reference to it), to a (possibly cv-qualified) base class of that typ

C++ PATCH for c++/87357, missing -Wconversion warning

2018-09-18 Thread Marek Polacek
As I mentioned in the PR, [class.conv.fct] says "A conversion function is never used to convert a (possibly cv-qualified) object to the (possibly cv-qualified) same object type (or a reference to it), to a (possibly cv-qualified) base class of that type (or a reference to it), or to (possibly cv-qu