[Issue 6647] New: [SafeD] unhelpful error message for @safety mismatch of generated destructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 11 10:23:44 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6647
Summary: [SafeD] unhelpful error message for @safety mismatch
of generated destructor
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dmitry.olsh at gmail.com
--- Comment #0 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2011-09-11 10:23:28 PDT ---
Test case:
struct A
{
~this(){}
}
@safe struct B
{
A a;
}
@safe void f()
{
auto x = B.init;
}
dmd outputs:
Error: safe function '~this' cannot call system function '~this'
And no line number or type anywhere in message.
At very minimum it should state which type is used in first ~this and which in
second.
--
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