Bug#678033: clang++ --std=gnu++11 fails to compile <iostream>

Sami Liedes sami.liedes at iki.fi
Mon Jun 18 18:45:14 UTC 2012


Package: clang
Version: 3.1-5
Severity: normal

I assume clang++ tries to support the --std=gnu+11 option. Compiling a
hello world program with it fails:

------------------------------------------------------------
$ cat test.cpp
#include <iostream>

int main() {
    std::cout << "Hello, world!" << std::endl;
}
$ clang++ test.cpp -o test -std=gnu++11
In file included from test.cpp:1:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ios:40:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/char_traits.h:40:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_algobase.h:65:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_pair.h:61:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/move.h:57:
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/type_traits:256:39: error: use of undeclared identifier '__float128'
    struct __is_floating_point_helper<__float128>
                                      ^
1 error generated.
$
------------------------------------------------------------

	Sami


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.2 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clang depends on:
ii  libc6                2.13-33
ii  libclang-common-dev  3.1-5
ii  libffi5              3.0.10-3
ii  libgcc1              1:4.7.1-1
ii  libllvm3.1           3.1-1
ii  libstdc++6           4.7.1-1
ii  libstdc++6-4.6-dev   4.6.3-7

Versions of packages clang recommends:
ii  llvm-3.1-dev  3.1-1
ii  python        2.7.3~rc2-1

clang suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20120618/79d7f3b8/attachment.pgp>


More information about the Pkg-llvm-team mailing list