]> granicus.if.org Git - clang/commit
constexpr:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 4 Feb 2012 00:33:54 +0000 (00:33 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 4 Feb 2012 00:33:54 +0000 (00:33 +0000)
commit5ba73e1af8ef519161bd40063dc325457e21676a
treef6d895061d3ab21b383e3e555a94cfa61d770f1c
parentc08c88c3cfc57b45ec1a9b4707b1f3df3108a639
constexpr:
  The recent support for potential constant expressions exposed a bug in the
  implementation of libstdc++4.6, where numeric_limits<int>::min() is defined
  as (int)1 << 31, which isn't a constant expression. Disable the 'constexpr
  function never produces a constant expression' error inside system headers
  to compensate.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149729 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/constexpr-sysheaders.cpp [new file with mode: 0644]