Displaying 3 results from an estimated 3 matches for "86e180b8".
2013 Sep 24
0
[LLVMdev] initialization list with conversion operator dont work properly and report error
On Mon, Sep 23, 2013 at 11:43 PM, Mayur Pandey <mayurthebond at gmail.com>wrote:
> for the following code:
>
> struct X
> {
> X();
> };
>
> struct Y
> {
> operator X() const;
> };
>
> X a = { Y() }; // reports error: no matching constructor for
> initialization of 'X'
> X aa = Y(); // works fine
>
>
> clang when compiled
2013 Sep 24
2
[LLVMdev] initialization list with conversion operator dont work properly and report error
for the following code:
struct X
{
X();
};
struct Y
{
operator X() const;
};
X a = { Y() }; // reports error: no matching constructor for
initialization of 'X'
X aa = Y(); // works fine
clang when compiled with std=c++11 gives compilation errors as:
testfile.C:11:3: error: no matching constructor for initialization of 'X'
X a = { Y() }; // reports error: no
2013 Sep 25
2
[LLVMdev] initialization list with conversion operator dont work properly and report error
...a bug.
>
> -Eli
>
--
Thanx & Regards
*Mayur Pandey *
Senior Software Engineer
Samsung India Software Operations
Bangalore
+91-9742959541
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130925/86e180b8/attachment.html>