Skip to content

Commit e396273

Browse files
committed
Fix bad_alloc::bad_alloc() linker symbol clash.
1 parent 8d5cf33 commit e396273

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

runtime/druntime/src/core/stdcpp/new_.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern (C++, "std")
3939
{
4040
@nogc:
4141
///
42-
this() { super("bad allocation", 1); }
42+
extern(D) this() { super("bad allocation", 1); }
4343
}
4444
}
4545

0 commit comments

Comments
 (0)