Bug 7050 – Safety error message should include full function names

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2011-12-02T09:14:00Z
Last change time
2012-10-27T02:26:38Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
code

Comments

Comment #0 by code — 2011-12-02T09:14:16Z
Currently (DMD 2.057 Git, 887dda0ba), --- struct Foo { this (int a) {} } @safe void foo() { auto f = Foo(3); } --- produces --- Error: safe function 'foo' cannot call system function 'this' --- . The error message should include the type (i.e. Foo.this) so it is clear what it refers to.
Comment #1 by andrej.mitrovich — 2012-10-21T15:59:02Z
*** Issue 6487 has been marked as a duplicate of this issue. ***
Comment #2 by andrej.mitrovich — 2012-10-21T16:08:17Z
*** Issue 5122 has been marked as a duplicate of this issue. ***
Comment #3 by yebblies — 2012-10-27T02:24:55Z