Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Feb 2017 19:50:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 216864] C11 conformance: cpow(), cpowf, and cpowl are missing
Message-ID:  <bug-216864-15@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216864

            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@FreeBSD.org
          Reporter: sgk@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 ty=
pe
      '_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 ty=
pe
      '_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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216864-15>