9rnsr · GitHub

added 5 commits

August 19, 2014 21:35
…forward references
Improve forward reference resolution in template instantiation with alias
- Check needGagging in TemplateInstance::semantic2()
- Set TemplateInstance::speculative if global.gag is set in semantic()
…regate members
It would cause unresolved forward reference because `TypeStruct::hasPointers()` requires the complete types of the fields.
By the improvement of recursive aliasing, we can simplify the concept to:
"A template instantiation during errors gagged is 'speculative instantiation'".

@9rnsr 9rnsr mentioned this pull request

Aug 19, 2014

Merged

WalterBright added a commit that referenced this pull request

Aug 20, 2014
Issue 13333 - Incorrect error ungagging during the resolution of forward references

@WalterBright

@9rnsr

9rnsr pushed a commit to 9rnsr/dmd that referenced this pull request

Aug 26, 2014
Issue 13333 - Incorrect error ungagging during the resolution of forward references

@9rnsr 9rnsr mentioned this pull request

Aug 26, 2014

Merged

Merged

gulugulubing pushed a commit to gulugulubing/dmd that referenced this pull request

Mar 15, 2026
* [spec/memory-safe-d] Improve `return` attribute docs
Fix Bugzilla 24659 - Memory safe D page lacks information on return ref.
Reword `return scope` docs (before this was just listed as `return`).
Move sentence about constructor `return` attribute after method attribute.
* 'indicate' grammar
Co-authored-by: Dennis <dkorpel@users.noreply.github.com>
* `this` is considered the first parameter
* `return` can't appear after free function parameter list
---------
Co-authored-by: Dennis <dkorpel@users.noreply.github.com>

Read the original on github.com ↗