"Default is not C++11" build failure(s) — clang 5.0
This code will fail to build with clang++ with the default args:#includeint main(int argc, char* args[]) { std::shared_ptr somePtr; return 0; };
# Works:
$ g++ foo.cpp
# Fails
$ clang++ foo.cpp
foo.cpp:4:7: error: no member named 'shared_ptr' in namespace 'std'
std::shared_ptr somePtr;
~~~~~^
foo.cpp:4:21: error: expected '(' for function-style cast or type construction
std::shared_ptr somePtr;
~~~^
foo.cpp:4:23: error: use of undeclared identifier 'somePtr'
std::shared_ptr somePtr;
^
3 errors generated.
# Fails again
$ g++ -std=c++11 foo.cpp
foo.cpp:1:13: error: invalid use of 'auto'
auto k() -> auto;
^~~~
| Package | Version | Supposed error message | Full log | Bug report |
|---|---|---|---|---|
| aptitude | 0.8.9-1 | ../../../../src/generic/util/throttle.h:54:10: error: no template named 'shared_ptr' in namespace 'std' | Log | |
| flexc++ | 2.06.02-2 | ./../state/state.h:16:10: error: no template named 'shared_ptr' in namespace 'std' | Log | |
| giac | 1.2.3.57+dfsg1-2 | ./index.h:572:11: error: no template named 'hash_map' in namespace 'std'; did you mean '__gnu_cxx::hash_map'? | Log | |
| highlight | 3.38-1 | ./include/astyle/astyle.h:825:22: error: no template named 'shared_ptr'; did you mean 'boost::shared_ptr'? | Log | |
| kicad | 4.0.6+dfsg1-1 | tool_base.h:58:30: error: no template named 'function' in namespace 'std' | Log | |
| libbpp-core | 2.3.1-4 | OutputStream.h:170:16: error: no template named 'unique_ptr' in namespace 'std' | Log | |
| liborigin2 | 2:20110117-1.2 | ./OriginFile.h:72:2: error: no template named 'shared_ptr'; did you mean 'boost::shared_ptr'? | Log | |
| libtgvoip | 1.0~git20170704.445433f-3 | aec_core.h:137:8: error: no template named 'unique_ptr' in namespace 'std' | Log | |
| rsyncrypto | 1.13-1 | ./rsyncrypto.h:97:13: error: no template named 'unique_ptr' in namespace 'std' | Log |
9 errors