Throwing a non-copyable exception #57519
Labels
accepts-invalid
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
duplicate
Resolved as duplicate
clang -std=c++20
accepts the following program:but it is ill-formed at #1 according to [except.throw] p5. (We need to be able to copy exception objects in a type-erased manner for
std::exception_ptr
on implementations without reference-counted exceptions.)Cross-reference: gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106812
The text was updated successfully, but these errors were encountered: