Fix for Bug 17376 - initialization list with conversion operator dont work properly and report error

Richard Smith richard at metafoo.co.uk
Wed Oct 30 13:18:09 PDT 2013


PR17376 is not (currently) a bug; clang is behaving according to the rules
in the standard. I brought this up on the c++ core reflector a couple of
months ago, so we might change the language rules to allow this, but it's
not clear that we will. For now, this is a g++ bug.


On Wed, Oct 30, 2013 at 7:50 AM, MAYUR PANDEY <mayur.p at samsung.com> wrote:

>  Hi,
>
>
>
> Made the required indentation changes in the patch.
>
>
>
> Regards,
>
> Mayur
>
>
>
> ------- *Original Message* -------
>
> *Sender* : MAYUR PANDEY<mayur.p at samsung.com> Senior Software
> Engineer/SRI-Bangalore-Native Framework/Samsung Electronics
>
> *Date* : Oct 25, 2013 22:26 (GMT+09:00)
>
> *Title* : Fix for Bug 17376 - initialization list with conversion
> operator dont work properly and report error
>
>
> **
>
> Hi,
>
> I have attached a fix for the above bug. The fix is not very refined but
> it does solve the bug. On regression one failure was in TC Clang ::
> SemaCXX/explicit.cpp, however the test itself is not clear. As the same
>
>  thing is allowed on g++ and not allowed on EDG compiler. For my patch we
> are following what gcc is doing. Please have a look and let me know what
> all changes can be done.
>
>
>
> Thanks,
>
> Mayur
>
>
>
>
> **
>
>
>
>
>
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131030/0f0483e1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 201310302022270_BEI0XT4N.gif
Type: image/gif
Size: 14036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131030/0f0483e1/attachment.gif>


More information about the cfe-commits mailing list