Skip to content
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

Merge upstream stable (v2.094.1) #3588

Merged
merged 1 commit into from
Oct 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions dmd/dsymbolsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -5971,6 +5971,17 @@ void templateInstanceSemantic(TemplateInstance tempinst, Scope* sc, Expressions*
{
tempinst.minst = null;
}
// https://issues.dlang.org/show_bug.cgi?id=21299
// If not speculative, this instance should have the same instantiating
// root module as its enclosing template symbol. This can differ when
// the enclosing template gets changed from non-root to a root instance
// in the instantiation graph. When that occurs, this instance also
// needs to be appended to the root module, otherwise there will be
// undefined references at link-time.
if (tempinst.minst && tempinst.tinst)
{
tempinst.minst = tempinst.tinst.minst;
}

tempinst.gagged = (global.gag > 0);

Expand Down
2 changes: 1 addition & 1 deletion runtime/druntime
Submodule druntime updated 1 files
+29 −18 src/object.d