Skip to content

Clang workarounds - #867

Merged
Kenny Kerr (kennykerr) merged 1 commit into
masterfrom
clang-workarounds
Mar 4, 2021
Merged

Clang workarounds#867
Kenny Kerr (kennykerr) merged 1 commit into
masterfrom
clang-workarounds

Conversation

@kennykerr

Copy link
Copy Markdown
Collaborator
  • Versions of STL typically used with Clang don't corrently attribute std::terminate with [[noreturn]].

  • Clang incorrectly fails to see the static constexpr member.

Comment thread strings/base_error.h
Comment thread strings/base_error.h
[[noreturn]] inline void __stdcall fallback_RoFailFastWithErrorContext(int32_t) noexcept
{
std::terminate();
abort();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm somewhat surprised that we don't have to say std::abort() here, but obviously it's working somehow.

@kennykerr
Kenny Kerr (kennykerr) merged commit c350ff3 into master Mar 4, 2021
@kennykerr
Kenny Kerr (kennykerr) deleted the clang-workarounds branch March 4, 2021 17:23
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants