https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279692
Bug ID: 279692
Summary: '#include <csetjmp>' is broken: error: "If libc++
starts defining <setjmp.h>, the __has_include check
should move to libc++'s <setjmp.h>"
Product: Base System
Version: 14.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: [email protected]
Reporter: [email protected]
This simple program can't be compiled on 14.1:
#include <csetjmp>
int main() {
}
$ c++ x.cpp
In file included from x.cpp:2:
/usr/include/c++/v1/csetjmp:40:6: error: "If libc++ starts defining <setjmph>,
the __has_include check should move to libc++'s <setjmp.h>"
40 | # error "If libc++ starts defining <setjmp.h>, the __has_include
check should move to libc++'s <setjmp.h>"
| ^
1 error generated.
The error message doesn't explain what is wrong with the program.
The C++ standard says that <csetjmp> should be included for the C++ feature
std::jmp_buf.
See here: https://en.cppreference.com/w/cpp/utility/program/jmp_buf
--
You are receiving this mail because:
You are the assignee for the bug.