[Issue 15411] Function literal accessing variable in declaration scope produces bad error message with inline call
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Dec 5 19:53:14 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15411
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
Hardware|x86_64 |All
OS|Linux |All
Severity|enhancement |minor
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
That's an incomplete access check of enclosing function frame in front end.
In the first case, the error message is generated by glue-layer, so it shows no
message with -o- switch.
In https://github.com/D-Programming-Language/dmd/pull/5271, the frame access
check issue will be fixed properly, then error message will also be consistent
and generated by front end.
I added a diagnostic test case for this issue into the PR 5271.
--
More information about the Digitalmars-d-bugs
mailing list