[Issue 8118] Impossible to initialize a member struct without default constructor or assigment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 28 20:39:43 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=8118


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #7 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-28 20:39:33 PST ---
(In reply to comment #6)
> This seems to be fixed now (code compiles and runs on 2.064).

The OP case is fixed in 2.064, by fixing issue 9665.

(In reply to comment #5)
> I haven't checked, but it could allow code like this if not currently possible:
> 
> S s = void;
> if (xyz) {
>   s = S(3);
> } else {
>   s = S(7);
> }

This is completely different case. It would need to use std.conv.emplace.

*** This issue has been marked as a duplicate of issue 9665 ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list