public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15720] New: stdc-predef.h wrongly defines __STDC_IEC_559_COMPLEX__
@ 2013-07-06  4:10 bugdal at aerifal dot cx
  2013-07-06 20:58 ` [Bug libc/15720] " joseph at codesourcery dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugdal at aerifal dot cx @ 2013-07-06  4:10 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15720

            Bug ID: 15720
           Summary: stdc-predef.h wrongly defines __STDC_IEC_559_COMPLEX__
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: bugdal at aerifal dot cx
                CC: drepper.fsp at gmail dot com

Based on the comment in stdc-predef.h, somebody apparently assumed
__STDC_IEC_559_COMPLEX__ means the implementation supports complex arithmetic.
This is not what it means. Complex arithmetic is mandatory in C99, and in C11
implementations that lack complex arithmetic must define __STDC_NO_COMPLEX__.
The meaning of __STDC_IEC_559_COMPLEX__ is that the implementation conforms to
Annex G, which among other things, requires the existence of the
otherwise-optional _Imaginary types which GCC does not support.

This is a fairly serious issue for applications, since on an implementation
conforming to Annex G, I*INFINITY is interpreted as intended, whereas on an
implementation lacking _Imaginary types and defining I as _Complex_I,
I*INFINITY results in a NAN due to the 0*INFINITY term.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2023-01-25  7:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-06  4:10 [Bug libc/15720] New: stdc-predef.h wrongly defines __STDC_IEC_559_COMPLEX__ bugdal at aerifal dot cx
2013-07-06 20:58 ` [Bug libc/15720] " joseph at codesourcery dot com
2013-07-06 23:53 ` bugdal at aerifal dot cx
2013-07-07 16:21 ` joseph at codesourcery dot com
2013-07-07 17:07 ` bugdal at aerifal dot cx
2013-07-07 17:26 ` joseph at codesourcery dot com
2013-11-04 15:52 ` jsm28 at gcc dot gnu.org
2014-06-13 13:25 ` fweimer at redhat dot com
2023-01-25  7:16 ` sam at gentoo dot 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).