Bug 15515 – default construction disabled for struct constructor with default arguments

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-04T19:41:00Z
Last change time
2016-01-04T19:52:05Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2016-01-04T19:41:05Z
cat > bug.d << EOF struct S { this(string r = ".") { } } void test() { S s; } EOF dmd -c bug ---- bug.d(7): Error: variable bug.test.s default construction is disabled for type S ---- This was turned into an error between 2.069.2 and 2.070.0 without any deprecation step.
Comment #1 by ag0aep6g — 2016-01-04T19:52:05Z
*** This issue has been marked as a duplicate of issue 15500 ***