Skip to content

Commit

Permalink
Fix issue 15372
Browse files Browse the repository at this point in the history
  • Loading branch information
Kozzi11 committed Mar 16, 2016
1 parent 62aeb7f commit 548c6d1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/cppmangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ static if (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_OPENBSD || TAR
TypeFunction tf = cast(TypeFunction)d.type;
buf.writestring("_Z");
Dsymbol p = d.toParent();
if (p && !p.isModule() && tf.linkage == LINKcpp)
TemplateDeclaration ftd = getFuncTemplateDecl(d);

if (p && !p.isModule() && tf.linkage == LINKcpp && !ftd)
{
buf.writeByte('N');
if (d.type.isConst())
Expand Down Expand Up @@ -468,6 +470,13 @@ static if (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_OPENBSD || TAR
}
buf.writeByte('E');
}
else if (ftd)
{
source_name(p);
this.is_top_level = true;
tf.nextOf().accept(this);
this.is_top_level = false;
}
else
{
source_name(d);
Expand Down

0 comments on commit 548c6d1

Please sign in to comment.