mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 15:23:13 +01:00
Don't resolve template instances that were instantiated inside static if or statis assert
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user