[cfe-dev] [libc++] r160604 appears to have broken libc++ on linux
Andrew C. Morrow
andrew.c.morrow at gmail.com
Tue Jul 24 13:26:36 PDT 2012
>
> Ok, thanks, and with -std=c++0x, is constexpr turned on?
>
> #if __has_feature(cxx_constexpr)
> #error has constexpr
> #else
> #error doesn't have constexpr
> #endif
>
> int main()
> {
> }
>
> Howard
>
$ cat ./libc++.stringstream.crash.cpp
#include <istream>
#if __has_feature(cxx_constexpr)
#error has constexpr
#else
#error doesn't have constexpr
#endif
int main(int argc, char* argv[]) {
std::istream is(NULL);
return EXIT_SUCCESS;
}
$ ~/opt/bin/clang++ ./libc++.stringstream.crash.cpp -std=c++11
-stdlib=libc++ -lc++abi -I/home/acm/opt/include/c++/v1
-L/home/acm/opt/lib -Wl,-rpath,/home/acm/opt/lib -g
./libc++.stringstream.crash.cpp:4:2: error: has constexpr
#error has constexpr
^
1 error generated.
Yes, constexpr is turned on.
More information about the cfe-dev
mailing list