Don't resolve template instances that were instantiated inside static if or statis assert

This commit is contained in:
Alexey Prokhin
2012-02-14 15:17:59 +04:00
parent 1f4cd033ca
commit bb0d51fb98
8 changed files with 20 additions and 3 deletions

View File

@@ -245,6 +245,11 @@ void TemplateInstance::codegen(Ir* p)
#if LOG
printf("TemplateInstance::toObjFile('%s', this = %p)\n", toChars(), this);
#endif
#if DMDV2
if (ignore)
return;
#endif
if (!errors && members)
{
for (unsigned i = 0; i < members->dim; i++)