Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Feb 2017 19:47:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 216863] /* C11 conformance: clog(), clogf, and clogl are missing */
Message-ID:  <bug-216863-15@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 216863
           Summary: /* C11 conformance: clog(), clogf, and clogl 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 z)
{
   return (clog(z));
}
float complex
foof(float complex z)
{
   return (clogf(z));
}

long double complex
fool(long double complex z)
{
   return (clogl(z));
}

 cc -c foo.c
foo.c:7:12: warning: implicitly declaring library function 'clog' with type
      '_Complex double (_Complex double)' [-Wimplicit-function-declaration]
   return (clog(z));
           ^
foo.c:7:12: note: include the header <complex.h> or explicitly provide a
      declaration for 'clog'
foo.c:12:12: warning: implicitly declaring library function 'clogf' with ty=
pe
      '_Complex float (_Complex float)' [-Wimplicit-function-declaration]
   return (clogf(z));
           ^
foo.c:12:12: note: include the header <complex.h> or explicitly provide a
      declaration for 'clogf'
foo.c:18:12: warning: implicitly declaring library function 'clogl' with ty=
pe
      '_Complex long double (_Complex long double)'
      [-Wimplicit-function-declaration]
   return (clogl(z));
           ^
foo.c:18:12: note: include the header <complex.h> or explicitly provide a
      declaration for 'clogl'
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-216863-15>