Skip to content

fix #21523 A template function in an imported module does not inline functions annotated with pragma(inline, true) - #21524

Merged
thewilsonator merged 1 commit into
dlang:stablefrom
rainers:issue21523
Jul 11, 2025
Merged

Conversation

@rainers

@rainers rainers commented Jul 11, 2025

Copy link
Copy Markdown
Member

inlining of a template instance must be checked on the module that generates the instance, not the source module.

Not sure how to easily setup a test for inlining. Parsing the output of '-v' is probably not compatible across different backends.

…line functions annotated with pragma(inline, true)

inlining of a template instance must be checked on the module that generates the instance, not the source module
@dlang-bot

Copy link
Copy Markdown

Thanks for your pull request, @rainers!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

⚠️⚠️⚠️ Warnings ⚠️⚠️⚠️

  • In preparation for migrating from Bugzilla to GitHub Issues, the issue reference syntax has changed. Please add the word "Bugzilla" to issue references. For example, Fix Bugzilla Issue 12345 or Fix Bugzilla 12345.(Reminder: the edit needs to be done in the Git commit message, not the GitHub pull request.)

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + dmd#21524"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A template function in an imported module does not inline functions annotated with pragma(inline, true)

3 participants