[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 Jul 9 20:22:27 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7021
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
Severity|normal |major
--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-07-09 20:22:25 PDT ---
This works just fine too (with dmd 2.060HEAD)
struct Foo
{
@disable this();
}
void main()
{
auto foo = Foo.init;
}
It looks to me like @disable this() isn't working at all.
--
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