[Issue 661] New: Error using a zero-init struct's init property
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 6 19:51:55 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=661
Summary: Error using a zero-init struct's init property
Product: D
Version: 0.176
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: dvdfrdmn at users.sf.net
---
struct X { int x; }
void main()
{
X x;
x = x.init;
}
---
Compiling yields: Error: cannot implicitly convert expression (0) of type int
to X
--
More information about the Digitalmars-d-bugs
mailing list