Confirming a bug in clang++ (freeBSD

Boris Kochergin spawk at acm.poly.edu
Tue Jun 29 04:37:37 UTC 2010


Eitan Adler wrote:
> Can anyone with FreeBSD 8.1-RC1 i386 or FreeBSD 8.1-RC2 i386 confirm
> that the following code compiles and fails with the version of clang++
> from ports?
> This works with g++ and fails with clang++ for me.
>
> Here is the original code
> #include <iostream>
> int main()
> {
>     std::cout << 1;
>     return 1;
> }
>
> My bug report is here: http://llvm.org/bugs/show_bug.cgi?id=7489
>
> I want to know if this is my problem or a clang++ problem or a bug
> somewhere else.
>   
Works fine here:

# uname -a
FreeBSD peer 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #2: Mon Feb 22 
23:18:53 EST 2010     root at peer:/usr/obj/usr/src/sys/PEER  i386

# clang++ -v
clang version 1.1 (branches/release_27)
Target: i386-portbld-freebsd8.0
Thread model: posix

I can try it on a recent CURRENT machine tomorrow, but perhaps you'd 
best share your environment. I've compiled non-trivial C++ programs with 
clang++ and they've behaved properly.

-Boris


More information about the freebsd-ports mailing list