Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/exception.d
Original file line number Diff line number Diff line change
Expand Up @@ -680,13 +680,13 @@ extern (C)
}
}

// TLS storage shared for all errors, chaining might create circular reference
private void[128] _store;

// only Errors for now as those are rarely chained
private T staticError(T, Args...)(auto ref Args args)
if (is(T : Error))
{
// TLS storage shared for all errors, chaining might create circular reference
static void[128] _store;

// pure hack, what we actually need is @noreturn and allow to call that in pure functions
static T get()
{
Expand Down