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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831385

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to