libstdc++-4.8-dev:amd64 4.8.5-4ubuntu6 configured without _GLIBCXX_USE_C99
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.8 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Test program compiled on Artful Aardvark Ubuntu 17.10.
$ which g++-4.8
/usr/bin/g++-4.8
$ /usr/bin/g++-4.8 --version
g++-4.8 (Ubuntu 4.8.5-4ubuntu6) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ /usr/bin/g++-4.8 -std=c++11 -x c++ - <<EOF
#include <iostream>
#include <string>
int main()
{
std::cout << std::to_string(0) << '\n';
return 0;
}
EOF
Expected result
compile without errors, output 0
Actual result
<stdin>: In function ‘int main()’:
<stdin>:5:16: error: ‘to_string’ is not a member of ‘std’
Supposed cause
_GLIBCXX_USE_C99 is not set in
/usr/include/
in package libstdc+
Further information
Test program compiles and runs on Zesty Zapus with package
libstdc+
tags: | added: artful |
won't fix in gcc-4.8