Bug 10984 – Frame access diagnostic should improve
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-06T17:34:00Z
Last change time
2013-09-13T23:24:29Z
Keywords
diagnostic, pull
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2013-09-06T17:34:39Z
-----
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.
Comment #1 by andrej.mitrovich — 2013-09-13T15:22:05Z