Bug 15551 – default construction disabled with default arguments

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-01-11T08:41:00Z
Last change time
2016-03-29T22:23:46Z
Assigned to
nobody
Creator
wikodes

Comments

Comment #0 by wikodes — 2016-01-11T08:41:28Z
Working with dmd.2.069.2 Fail with nightly build 2016-01-11. ---- cat > bug.d << EOF struct S { this(string r = ".") { } } void test() { S ok(); S err; } EOF dmd -c bug.d ---- ./bug.d(41): Error: variable bug.test.err default construction is disabled for type S ----
Comment #1 by code — 2016-03-29T22:23:46Z
*** This issue has been marked as a duplicate of issue 15500 ***