[Issue 3606] New: Problems with struct destructors and const structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 11 05:44:38 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3606
Summary: Problems with struct destructors and const structs
Product: D
Version: 2.036
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: webby at beardmouse.org.uk
--- Comment #0 from Richard Webb <webby at beardmouse.org.uk> 2009-12-11 05:44:37 PST ---
Using DMD 2.037, trying to compile the code:
////////////////////////////////
struct Foo
{
~this()
{
}
}
void Bar()
{
const Foo f;
}
////////////////////////////////
Fails with the error:
Error: destructor Foo.~this () is not callable using argument types ()
Which seems a bit strange.
--
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