Skip to content

Commit 78e4d93

Browse files
s-ludwigdlang-bot
authored andcommitted
Fix linker symbol clash for Android libc++.
This adjusts the constructor to be extern(D), analogous to the other C++ exception class definitions. See ldc-developers/ldc#4634
1 parent b84fa47 commit 78e4d93

File tree

1 file changed

+1
-1
lines changed
  • druntime/src/core/stdcpp

1 file changed

+1
-1
lines changed

druntime/src/core/stdcpp/new_.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern (C++, "std")
3333
{
3434
@nogc:
3535
///
36-
this() { super("bad allocation", 1); }
36+
extern(D) this() { super("bad allocation", 1); }
3737
}
3838
}
3939

0 commit comments

Comments
 (0)