[Bug 1831385] [NEW] `std::cosf`, `std::sinf`, `std::sqrtf` are not declared in `<cmath>`

uman brennan.vincent at gmail.com
Sun Jun 2 19:11:22 UTC 2019


Public bug reported:

The following program fails to compile, even with `g++ --std=c++17
test.cpp`.

```
#include <cmath>
#include <stdio.h>

int main()
{
	printf("%f\n", std::cosf(0.0f));
}
```

`std::cosf` is required by the c++ standard. Draft N4659, page 1140.

g++ version is 8.3.0-6ubuntu1

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: libstdc++-8-dev 8.3.0-6ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-15.16-generic 5.0.6
Uname: Linux 5.0.0-15-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Jun  2 15:05:25 2019
InstallationDate: Installed on 2019-06-01 (0 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gcc-8
UpgradeStatus: Upgraded to disco on 2019-06-01 (0 days ago)

** Affects: gcc-8 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug disco

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-8 in Ubuntu.
https://bugs.launchpad.net/bugs/1831385

Title:
  `std::cosf`, `std::sinf`, `std::sqrtf` are not declared in `<cmath>`

Status in gcc-8 package in Ubuntu:
  New

Bug description:
  The following program fails to compile, even with `g++ --std=c++17
  test.cpp`.

  ```
  #include <cmath>
  #include <stdio.h>

  int main()
  {
  	printf("%f\n", std::cosf(0.0f));
  }
  ```

  `std::cosf` is required by the c++ standard. Draft N4659, page 1140.

  g++ version is 8.3.0-6ubuntu1

  ProblemType: Bug
  DistroRelease: Ubuntu 19.04
  Package: libstdc++-8-dev 8.3.0-6ubuntu1
  ProcVersionSignature: Ubuntu 5.0.0-15.16-generic 5.0.6
  Uname: Linux 5.0.0-15-generic x86_64
  ApportVersion: 2.20.10-0ubuntu27
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Jun  2 15:05:25 2019
  InstallationDate: Installed on 2019-06-01 (0 days ago)
  InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: gcc-8
  UpgradeStatus: Upgraded to disco on 2019-06-01 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-8/+bug/1831385/+subscriptions



More information about the foundations-bugs mailing list