[Issue 10186] default construction is disabled even if default ctor declared

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 27 14:47:33 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=10186

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |FIXED

--- Comment #11 from RazvanN <razvan.nitu1305 at gmail.com> ---
I cannot reproduce the first incarnations of this bug [1][2]. As for the 3rd
provided test case [3], the sample is indeed invalid because the array of
classes needs to enclose the the init value of the structs in the array
elements, thus violating the @disable this() of struct S.

As such, this bug has been fixed.

[1] https://issues.dlang.org/show_bug.cgi?id=10186#c0
[2] https://issues.dlang.org/show_bug.cgi?id=10186#c3
[3] https://issues.dlang.org/show_bug.cgi?id=10186#c10

--


More information about the Digitalmars-d-bugs mailing list