public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/115512] New: _Float32 overloads in cmath cause ICE for default AVR
@ 2024-06-16 14:43 dv at vollmann dot ch
  2024-06-17  8:59 ` [Bug libstdc++/115512] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dv at vollmann dot ch @ 2024-06-16 14:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115512

            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 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115511>, 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 double
is 32 bits.

The problem can be reproduced with a single line source:

#include <cmath>

avr-g++ -std=gnu++23 -o cmath-only.o -c cmath-only.cc

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-17 12:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-16 14:43 [Bug libstdc++/115512] New: _Float32 overloads in cmath cause ICE for default AVR dv at vollmann dot ch
2024-06-17  8:59 ` [Bug libstdc++/115512] " jakub at gcc dot gnu.org
2024-06-17  9:33 ` dv at vollmann dot ch
2024-06-17 12:24 ` dv at vollmann dot ch
2024-06-17 12:31 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).