https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105081
Bug ID: 105081 Summary: Make std::random_device throw std::system_error Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- Unsupported constructor tokens could throw a std::system_error with std::invalid_argument instead of just std::runtime_error. That would match what libc++ does. This shouldn't break any existing code, because a handler for std::runtime_error will still catch a std::system_error exception.