[Bug c++/51553] brace initialization and conversion operators

david.d.kretzmer at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 30 23:16:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51553

david.d.kretzmer at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david.d.kretzmer at gmail dot com

--- Comment #4 from david.d.kretzmer at gmail dot com ---
13.3.3.1 p4 [over.best.ics]
[...] or when the initializer
list has exactly one element and a conversion to some class X or reference to
(possibly cv-qualified) X is
considered for the first parameter of a constructor of X, or by 13.3.1.4,
13.3.1.5, or 13.3.1.6 in all cases, only
standard conversion sequences and ellipsis conversion sequences are considered.

If I understand this correctly then the behavior before gcc 4.7 was actually
correct: only standard conversions are considered, conversion functions are
not.



More information about the Gcc-bugs mailing list