Skip to content

Conversation

@kennykerr
Copy link
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.

[[noreturn]] inline void __stdcall fallback_RoFailFastWithErrorContext(int32_t) noexcept
{
std::terminate();
abort();
Copy link
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 kennykerr merged commit c350ff3 into master Mar 4, 2021
@kennykerr 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.

3 participants