January 11, 2016 [Issue 15551] New: default construction disabled with default arguments | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15551 Issue ID: 15551 Summary: default construction disabled with default arguments Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: wikodes@gmail.com 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 ---- -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply