You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by Apache Wiki <wi...@apache.org> on 2012/01/10 01:47:50 UTC

[Stdcxx Wiki] Update of "C++0xCompilerSupport" by Miles Bader

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Stdcxx Wiki" for change notification.

The "C++0xCompilerSupport" page has been changed by Miles Bader:
http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport?action=diff&rev1=87&rev2=88

Comment:
clang++ trunk (3.1) _does_ support non-trivial use of constexpr (e.g. "constexpr int factorial(int i) { return ...; }... int test (int i) { switch (i) { case factorial(9): ...; } }")

- The following table lists C++0x features and their support in popular compilers.
+ twoThe following table lists C++0x features and their support in popular compilers.
- ||||||||||||||||||||||||<tablewidth="1201px" tableheight="925px" tablestyle="text-align:center;           "style="text-align:center;">Status Of C++ 0x Language Features in Compilers ||
+ ||||||||||||||||||||||||<tablewidth="1201px" tableheight="925px" tablestyle="text-align:center;            "style="text-align:center;">Status Of C++ 0x Language Features in Compilers ||
- ||<rowbgcolor="powderblue" rowstyle="font-weight:bold;           ">C++ 0x FEATURE ||<12%>PAPER(S) ||HP aCC ||EDG eccp ||[[http://gcc.gnu.org/projects/cxx0x.html|GCC]] ||[[http://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler/|Intel C++]] ||[[http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx|MSVC]] ||[[http://www.ibm.com/software/awdtools/xlcpp/aix/features/?S_CMP=rnav|IBM XLC++]] ||Sun/ Oracle C++ ||C++ Builder 2009/10 ||Digital Mars C++ ||[[http://clang.llvm.org/cxx_status.html|Clang]] ||
+ ||<rowbgcolor="powderblue" rowstyle="font-weight:bold;            ">C++ 0x FEATURE ||<12%>PAPER(S) ||HP aCC ||EDG eccp ||[[http://gcc.gnu.org/projects/cxx0x.html|GCC]] ||[[http://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler/|Intel C++]] ||[[http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx|MSVC]] ||[[http://www.ibm.com/software/awdtools/xlcpp/aix/features/?S_CMP=rnav|IBM XLC++]] ||Sun/ Oracle C++ ||C++ Builder 2009/10 ||Digital Mars C++ ||[[http://clang.llvm.org/cxx_status.html|Clang]] ||
  ||<style="text-align:left;">`alignas` ||[[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf|N2341]] || || || || || || || || || ||3.0 ||
  ||<style="text-align:left;">`alignof` ||[[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf|N2341]] || || ||4.5 || || || || ||Yes || ||2.9 ||
  ||<style="text-align:left;">`auto` ||v0.9: [[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1984.pdf|N1984]], v1.0: [[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2546.htm|N2546]] || ||4.1(v0.9) ||4.4(v1.0) ||11.0(v0.9) ||10.0(v0.9) ||11.1 (V1.0) || || || ||Yes ||
  ||<style="text-align:left;">C99 preprocessor ||[[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1653.htm|N1653]] || || ||4.3 ||11.1 || ||10.1 ||5.9 || ||Yes ||Yes ||
  ||<rowbgcolor="lightgray"style="text-align:left;">''Concepts ^[removed]^'' ||[[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2617.pdf|N2617]] || || ||ConceptGcc ||<<BR>> || || || || || || ||
- ||<style="text-align:left;">`constexpr` ||[[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf|N2235]] || || ||4.6 ||<<BR>> || || || || || || ||
+ ||<style="text-align:left;">`constexpr` ||[[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf|N2235]] || || ||4.6 ||<<BR>> || || || || || ||3.1||
  ||<style="text-align:left;">`decltype` ||v1.0: [[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2343.pdf|N2343]], v1.1: [[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3276.pdf|N3276]] || ||4.1(v1.0) ||4.3(v1.0) ||11.0(v1.0) ||10.0(v1.0), 11.0(v1.1) ||11.1 (V1.0) || ||Yes || ||2.9 ||
  ||<style="text-align:left;">Defaulted And Deleted Functions ||[[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm|N2346]] || ||4.1 ||4.4 ||12.0 || || || || || ||3.0 ||
  ||<style="text-align:left;">Delegating Constructors ||[[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf|N1986]] || || ||4.7 ||<<BR>> || ||11.1 || || || ||3.0 ||