mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +03:00
Fixed array operation codegen when used from imported templates. All array operations are now emitted with template linkage. Fixed #270 .
This commit is contained in:
parent
617861ead4
commit
ca39bb4f4d
3 changed files with 9 additions and 3 deletions
|
@ -1352,6 +1352,12 @@ void DtoOverloadedIntrinsicName(TemplateInstance* ti, TemplateDeclaration* td, s
|
|||
|
||||
bool mustDefineSymbol(Dsymbol* s)
|
||||
{
|
||||
if (FuncDeclaration* fd = s->isFuncDeclaration())
|
||||
{
|
||||
if (fd->isArrayOp)
|
||||
return true;
|
||||
}
|
||||
|
||||
TemplateInstance* tinst = DtoIsTemplateInstance(s);
|
||||
if (tinst)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue