[Issue 10984] New: Frame access diagnostic should improve

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 6 17:34:41 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10984

           Summary: Frame access diagnostic should improve
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-06 17:34:39 PDT ---
-----
void main()
{
}

unittest
{
    int x;
    static void f() { x++; }
}
-----

> test.d(8): Error: function test.__unittestL7_1.f cannot access frame of function test.__unittestL7_1

It should be:

> test.d(8): Error: static function test.__unittestL7_1.f cannot access frame of function test.__unittestL7_1.

-- 
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