From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B00EC3858C53; Wed, 18 Jan 2023 13:31:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B00EC3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674048660; bh=KRPYNFj8J5gnw9ItsnHiv0d5b59fFzig6Rxrrg2NxcM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XYwUs5Q20nFKX0LVKt2pnvuSN+mURirhP781kjjatWDWO/kIRx/8NQHasR/mOAyEJ 80X/5IR24HVZ6hiVCnwCez2zJUR831tGg3JlvPstqHgpK5K/h/H/Xd//pJ7ctC1Zd8 NpluNFvHWY0Ovfa7dSP5WFRHO7e0cHafyMvJhFmU= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/105081] Make std::random_device throw std::system_error Date: Wed, 18 Jan 2023 13:31:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105081 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-01-18 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- We should add an overload of __throw_system_error that takes a const char* because otherwise making this change would make the exception less informat= ive. Currently the std::runtime_error has a useful what() message: std::__throw_runtime_error( __N("random_device::random_device(const std::string&):" " unsupported token"));=