-
-
Notifications
You must be signed in to change notification settings - Fork 656
Scan for inline in all anonymous functions with a symbol #21977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for your pull request and interest in making D better, @limepoutine! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#21977" |
|
LGTM. Can you add a test? One option might be to add your reported test case, which should link without the imported data.d. This reveals that |
Done.
Nested functions are added to the parent's localsymtab, not module members. I think I can visit all local symbols in |
Thanks.
I tried filling an extra array in the module with literals that are calling functions with |
|
ATM |
|
Do note the frontend inliner is half deprecated in dmd, I guess ignored in ldc and nonexistent in gdc. Effort on getting the backend inliner sorted might be better collective use of time. |
|
Previously, named nested functions are scanned when visiting The backend inliner is too half-baked right now and tracking |
Fix #21974. Let's see what havoc it can wreak on CI.