September 18, 2014 [Issue 13495] DMD fails to call struct constructor with default args when default constructor is @disabled | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13495 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx Severity|enhancement |normal --- Comment #1 from hsteoh@quickfur.ath.cx --- I think this is a bug, not just an enhancement request. -- |
April 05, 2018 [Issue 13495] DMD fails to call struct constructor with default args when default constructor is @disabled | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13495 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |FIXED --- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> --- The code in the OP now issues a deprecation : Deprecation: constructor `test.S.this` all parameters have default arguments, but structs cannot have default constructors. PR : https://github.com/dlang/dmd/pull/5331 Default construction is disabled, so this case is no longer actual. Closing as fixed. -- |
Copyright © 1999-2021 by the D Language Foundation