For some reason, this information is difficult to come by.
We'd like to start using some of the C++0x features that are available in most compilers. But we are held back a bit by XCode 3, since it only provides GCC 4.2 and LLVM 1.5. All of the other platforms we need to support either already have compilers with preliminary support for C++0x features, or they have a relatively painless method of installing/upgrading the compiler.
An XCode 4 preview is available, but only to those in the Mac or iOS Developer Program.
Xcode 4 GM
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
Apple clang version 2.0 (tags/Apple/clang-134) (based on LLVM 2.9svn)
You can use a later gcc version in Xcode 3. I did it once, however I don't fully remember how; I used a gcc I built myself from the svn trunk. There is post here which might help you.
You can also build and run later versions of clang within Xcode. See for example:
http://shapeof.com/archives/2010/01/using_the_latest_llvm_with_xcode.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With