Merged DMD commit ac11d09afb39556fd995fba2481c274e40437d39:

merge
This commit is contained in:
David Nadlinger
2011-04-23 18:33:57 +02:00
parent ccbbd2b83e
commit dd2c12f2c0

View File

@@ -1,6 +1,6 @@
// Compiler implementation of the D programming language
// Copyright (c) 1999-2010 by Digital Mars
// Copyright (c) 1999-2011 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
@@ -443,6 +443,15 @@ void TemplateDeclaration::semantic(Scope *sc)
//sc->module->toModuleAssert();
}
#if DMDV2
if (/*global.params.useUnitTests &&*/ sc->module)
{
// Generate this function as it may be used
// when template is instantiated in other modules
sc->module->toModuleUnittest();
}
#endif
/* Remember Scope for later instantiations, but make
* a copy since attributes can change.
*/