Bug 216862 - C11 conformance: cexpl() is missing
Summary: C11 conformance: cexpl() is missing
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-standards mailing list
URL:
Keywords:
Depends on: 235413
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-06 19:45 UTC by sgk
Modified: 2020-05-19 02:06 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sgk 2017-02-06 19:45:22 UTC
#include <complex.h>
long double complex
foo(long double complex z)
{
   return (cexpl(z));
}

cc -c foo.c
foo.c:7:12: warning: implicitly declaring library function 'cexpl' with type
      '_Complex long double (_Complex long double)'
      [-Wimplicit-function-declaration]
   return (cexpl(z));
           ^
foo.c:7:12: note: include the header <complex.h> or explicitly provide a
      declaration for 'cexpl'
1 warning generated.
Comment 1 Sebastian Schwarz 2017-06-25 14:25:05 UTC
Isn't cexpl() already mandated by C99?  There are also a number of other functions missing from complex.h.  See bug #175811.

It looks like Dragonfly-, Net- and OpenBSD already have implementations of cexpl().  Maybe their code could be imported?