From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 193E03858C39; Sat, 5 Nov 2022 21:45:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 193E03858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667684704; bh=kSvmbv1zBNx35rUe7O9FFL6jKuZni0FuVjKKlq9u1HI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V7HIiGK0pjFPLCIENW8Wam/JSPv7IEh8aEhCre0e+wEO0Q4n+Yq2tZTp4Mwt9gd2k ljnZHUbSNIKQHYDycdagCy1jV7pWy7I7+5pKgceqiyV7XI6ewTXWRKa5feJS8E8LBg axKATbuX/5hzpt65+NnEKG0dUK0hcCMulAwyi3NQ= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107538] std::pow(10, std::complex(NaN, 1)) aborts with -D_GLIBCXX_ASSERTIONS Date: Sat, 05 Nov 2022 21:45:03 +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.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D107538 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gdr at gcc dot gnu.org --- Comment #2 from Jonathan Wakely --- Our use of polar seems to have been introduced specifically to deal with a different edge case, see r0-50043-g1db0418ae570ef for PR libstdc++/10689. When https://wg21.link/lwg2459 added the non-negative precondition to polar that introduced this problem for pow.=