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
Comment #2 by github-bugzilla — 2013-09-13T23:24:06Z
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