<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 3, 2011, at 3:07 PM, John Bytheway wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 31/01/11 16:15, Douglas Gregor wrote:<br><blockquote type="cite">We *should* have enough C++0x support to handle GCC 4.3 and 4.4's<br></blockquote><blockquote type="cite">headers. >= 4.5 headers will still cause problems due to their use of<br></blockquote><blockquote type="cite">generalized initializer lists.<br></blockquote><br>I still see plenty of errors including the gcc 4.4.5 headers (using llvm<br>and clang r124819).  Is there any option clang needs besides<br>-std=gnu++0x?  Are these errors worth reporting?<br></div></blockquote><div><br></div><div>It's worth reporting if you can narrow the problems down to smaller tests cases; that helps a lot.</div><br><blockquote type="cite"><div>Here are a few extracts from one attempted compilation as examples:<br><br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include/g++-v4/exception_ptr.h:143:13:<br>error: unknown type name 'type_info'<br>      const type_info*<br>            ^<br></div></blockquote><div><br></div><div>I'm guessing that this is actually a GCC bug; did they forget to include <typeinfo>?</div><br><blockquote type="cite"><div><br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include/g++-v4/ext/string_conversions.h:40:60:<br>error: template parameter missing a default argument<br>  template<typename _TRet, typename _Ret = _TRet, typename _CharT,<br>                                                           ^<br></div></blockquote><div><br></div><div>If this is a function template, then it's a Clang bug.</div><br><blockquote type="cite"><div><br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include/g++-v4/bits/basic_string.h:2570:12:<br>error: no matching function for call to '__stoa'<br>  { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),<br>           ^~~~~~~~~~~~~~~~~<br><br><br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include/g++-v4/tr1_impl/cmath:322:12:<br>error: use of undeclared identifier '__builtin_acoshf'<br>  { return __builtin_acoshf(__x); }<br>           ^<br></div></blockquote><div><br></div>More missing built-ins, apparently. It'd be good to file a bug about this.</div><div><br><blockquote type="cite"><div>clang: SemaCXXCast.cpp:612: TryCastResult TryStaticCast(clang::Sema&,<br>clang::Expr*&, clang::QualType, bool, const clang::SourceRange&,<br>unsigned int&, clang::CastKind&, clang::CXXCastPath&): Assertion<br>`SrcType->getAs<EnumType>()->getDecl()->isScoped()' failed.<br></div></blockquote></div><div><br></div>Can you identify the problematic code here and file a bug?<div><br><div><span class="Apple-tab-span" style="white-space:pre"> </span>- Doug</div></div></body></html>