Skip to content

Failed to compile with (llvm's) libc++ and C++23 due to missing <exception> include #57

Description

@shenlebantongying

Found in a project that vendors span: podofo/podofo#167

The root issue is that stdexcept no longer transitively includes exception for C++ > 20.

#ifndef TCB_SPAN_NO_EXCEPTIONS
#include <cstdio>
#include <stdexcept>
#endif

The llvm's libc++ code is here
https://github.com/llvm/llvm-project/blob/164597616c0c9cb42536d0d112e87e616751a438/libcxx/include/stdexcept#L280-L284

llvm's libc++ is the one shipped by apple on macOS.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions