Thread overview
[Issue 10984] New: Frame access diagnostic should improve
Sep 07, 2013
Andrej Mitrovic
Sep 13, 2013
Andrej Mitrovic
Sep 14, 2013
Walter Bright
September 07, 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@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@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: -------
September 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10984


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
         AssignedTo|nobody@puremagic.com        |andrej.mitrovich@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-13 15:22:05 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2554

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10984



--- Comment #2 from github-bugzilla@puremagic.com 2013-09-13 23:24:06 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/20ad475aa59a82a2f945443943eb642bd14c3ec5
Fixes Issue 10984 - Better diagnostic for static function when attempting to
access a symbol requiring frame access.

https://github.com/D-Programming-Language/dmd/commit/654090e9c95029d783f570dbf99412944a0dbc55 Merge pull request #2554 from AndrejMitrovic/Fix10984

Issue 10984 - Better diagnostic for static function frame access error

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10984


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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