Thread overview
[Issue 7050] New: Safety error message should include full function names
Dec 02, 2011
klickverbot
Oct 21, 2012
Andrej Mitrovic
Oct 21, 2012
Andrej Mitrovic
Oct 27, 2012
yebblies
Oct 27, 2012
yebblies
December 02, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7050

           Summary: Safety error message should include full function
                    names
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: code@klickverbot.at


--- Comment #0 from klickverbot <code@klickverbot.at> 2011-12-02 09:14:16 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7050


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-21 15:59:02 PDT ---
*** Issue 6487 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7050



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-21 16:08:17 PDT ---
*** Issue 5122 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 27, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7050


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com


--- Comment #3 from yebblies <yebblies@gmail.com> 2012-10-27 20:24:55 EST ---
Fixed https://github.com/D-Programming-Language/dmd/commit/98c9357e42e37de5b35c4ec2985d657770cedf6d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 27, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7050


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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