Re: [C++ Patch] PR 64418

2014-12-27 Thread Jason Merrill
On 12/27/2014 11:49 AM, Momchil Velikov wrote: struct C { C(const C &); }; struct X { operator C() const; }; C a{X()}; The variable "a" is initialised by direct list-initialization according to 8.5.4. [dcl.init.list] #3 and 13.3.1.7 [over.match.list]. As the class C does not have

Re: [C++ Patch] PR 64418

2014-12-27 Thread Paolo Carlini
Hi, On 12/27/2014 05:49 PM, Momchil Velikov wrote: +conversion in the context of list-initialisation. */ Nit: I think you want to spell initialization, with a z, like in the standard (and all the uses of the expression in our front-end) Paolo.

[C++ Patch] PR 64418

2014-12-27 Thread Momchil Velikov
Hello, This patch fixes an issue with C++11 where user-defined conversion is not properly suppressed in certain cases of list-initialisation. Consider the example: --- 8< -- struct C { C(const C &); }; struct X { operator C() const; }; C a{X()}; --- 8< -- This program i