Bug#666539: clang: Fails when trying to include chrono from C++11
Hi, I just stumbled across this issue. As clang-3.2 certainly doesn't have any chance of making it into this release anymore, shouldn't this bug be reopened and assigned to libstdc++6-4.7? A one-line fix seems more likely to still make it into the release. I'd also be in favor of severity: important, because this issue really renders clang unusable to some. Regards Markus Wanner signature.asc Description: OpenPGP digital signature
Bug#666539: clang: Fails when trying to include chrono from C++11
On the clang page there is said Patches are needed to make libstdc++-4.4 (http://clang.llvm.org/libstdc++4.4-clang0x.patch) and libstdc++-4.7 (http://clang.llvm.org/libstdc++4.7-clang11.patch) work with Clang in C++11 mode. (http://clang.llvm.org/cxx_status.html) There is also a bug-report on clang for this saying that this patches should do it: http://llvm.org/bugs/show_bug.cgi?id=12893 Hope that helps. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#666539: clang: Fails when trying to include chrono from C++11
Hello Mario, x4:/tmp% clang++ -std=c++0x -o clang-chrono clang-chrono.cxx In file included from clang-chrono.cxx:1: /usr/include/c++/4.6/chrono:666:7: error: static_assert expression is not an integral constant expression static_assert(system_clock::duration::min() ^ ~ 1 error generated. zsh: exit 1 clang++ -std=c++0x -o clang-chrono clang-chrono.cxx I haven't checked if it is fixed in the current trunk or not but it looks like it is a known issue: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-June/015641.html Sylvestre -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#666539: clang: Fails when trying to include chrono from C++11
Package: clang Version: 3.0-6 Severity: normal Dear Maintainer, clang fails to include chrono from C++11. Here is a minimal example program: ---snip--- #include chrono int main() { } ---snip--- Building with GCC (4.6 and 4.7) works fine: x4:/tmp% g++-4.6 -std=c++0x -o clang-chrono clang-chrono.cxx x4:/tmp% g++-4.7 -std=c++0x -o clang-chrono clang-chrono.cxx However, building with clang fails: x4:/tmp% clang++ -std=c++0x -o clang-chrono clang-chrono.cxx In file included from clang-chrono.cxx:1: /usr/include/c++/4.6/chrono:666:7: error: static_assert expression is not an integral constant expression static_assert(system_clock::duration::min() ^ ~ 1 error generated. zsh: exit 1 clang++ -std=c++0x -o clang-chrono clang-chrono.cxx The same error happens with chrono from c++/4.7/. I realize that this might be a libstdc++ bug. However, gcc does not trigger it, only clang seems to be strict enough (or broken enough? to actually trigger it. In any case, C++11 chrono is a no go on clang right now :(. -- CYa, ⡍⠁⠗⠊⠕ | Debian Developer URL:http://debian.org/ .''`. | Get my public key via finger mlang/k...@db.debian.org : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44 `. `' `- URL:http://delysid.org/ URL:http://www.staff.tugraz.at/mlang/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org