[Bug 216864] C11 conformance: cpow(), cpowf, and cpowl are missing

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 6 19:50:27 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216864

            Bug ID: 216864
           Summary: C11 conformance: cpow(), cpowf, and cpowl are missing
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: standards
          Assignee: freebsd-standards at FreeBSD.org
          Reporter: sgk at troutmask.apl.washington.edu

#include <complex.h>
double complex
foo(double complex a, double complex b)
{
   return (cpow(a, b));
}
float complex
foof(float complex a, float complex b)
{
   return (cpowf(a, b));
}

long double complex
fool(long double complex a, long double complex b)
{
   return (cpowl(a, b));
}

cc -c foo.c
foo.c:7:12: warning: implicitly declaring library function 'cpow' with type
      '_Complex double (_Complex double, _Complex double)'
      [-Wimplicit-function-declaration]
   return (cpow(a, b));
           ^
foo.c:7:12: note: include the header <complex.h> or explicitly provide a
      declaration for 'cpow'
foo.c:12:12: warning: implicitly declaring library function 'cpowf' with type
      '_Complex float (_Complex float, _Complex float)'
      [-Wimplicit-function-declaration]
   return (cpowf(a, b));
           ^
foo.c:12:12: note: include the header <complex.h> or explicitly provide a
      declaration for 'cpowf'
foo.c:18:12: warning: implicitly declaring library function 'cpowl' with type
      '_Complex long double (_Complex long double, _Complex long double)'
      [-Wimplicit-function-declaration]
   return (cpowl(a, b));
           ^
foo.c:18:12: note: include the header <complex.h> or explicitly provide a
      declaration for 'cpowl'
3 warnings generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-standards mailing list