C++ PATCH to initializer-list overload resolution

Paolo Carlini paolo.carlini@oracle.com
Fri Jul 24 17:18:00 GMT 2009


Jason Merrill wrote:
> Paolo's message with is patch for library DR 630 noted that assigning
> { } to a valarray was using the element assignment op rather than the
> initializer-list version.  Which is wrong; we always want to prefer
> the initializer-list overload when we get { }.  I had implemented that
> for comparison to calling a constructor, but not for conversion to
> scalar type.  Fixed thus.
Many thanks Jason. I also applied the below (per my original intentions ;)

Paolo.

//////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_dr630_c
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090724/27cbffb9/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_dr630_c
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090724/27cbffb9/attachment-0001.ksh>


More information about the Gcc-patches mailing list