From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4CD6F3858C48; Sun, 16 Jun 2024 14:43:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CD6F3858C48 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718549013; bh=Tqfr3fi939Mc1z5fe56p62URsLglSrtGqzqJp3Dmdmc=; h=From:To:Subject:Date:From; b=fgvNkyFfqyCAq/QA81U0Zgx5XNDFbnxrHuxpcyBiZs0tSkeIXdbps5X/9nbO0HzBr s7E6fqAajLOa9F2PTCPlQ0KVn99K7AIppAUsd4qC9eD5PatcPZ3amyNe+WRREqLYTo DZ2yoPis8qP8KdAI44GY4PQ0cpMSGUcgvFz/EXRE= From: "dv at vollmann dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/115512] New: _Float32 overloads in cmath cause ICE for default AVR Date: Sun, 16 Jun 2024 14:43:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dv at vollmann dot ch 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: 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=3D115512 Bug ID: 115512 Summary: _Float32 overloads in cmath cause ICE for default AVR Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dv at vollmann dot ch Target Milestone: --- Target: avr As reported in , g++ produces an ICE for calling functions with _Float32 for which both float and double overloads exist. I got it for __hypot3, but there are probably several others. I'm wondering if cmath should provide overloads for _Float32 at all if doub= le is 32 bits. The problem can be reproduced with a single line source: #include avr-g++ -std=3Dgnu++23 -o cmath-only.o -c cmath-only.cc=