http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60019

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
I don't think that this is related to the implementation of unique_ptr, instead
my guess is that gcc currently does not yet implement

http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#5

The code compiles well, if the destination object is not a const object or if
the initialization is direct-initialization. Before CWG 5 was reolved, it was
unclear whether the wording in 8.5 p17 (The bullet starting with: "If the
destination type is a (possibly cv-qualified) class type") was referring to a
destination type including or without it's cv qualification.

More evidence to that assumption is that the CWG 5 code example is currently
rejected by gcc as it would be expected to happen according to the "including
the cv-qualifier" interpretation.

Reply via email to