[Issue 7021] Structs with disabled default constructors can be constructed without calling a constructor.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 24 08:46:40 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7021



--- Comment #17 from Kenji Hara <k.hara.pg at gmail.com> 2012-09-24 08:47:32 PDT ---
(In reply to comment #15)
> That's a bug: .init for nested structs is garbage. It's the cause of bug 6419,
> for example. defaultInitLiteral() is wrong.

Hmmm? Now all cases in bug 6419 run correctly. In current, by fixing bug 7965,
TypeStruct::defaultInitLiteral always returns StructLiteralExp.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list