]> granicus.if.org Git - clang/commit
Add a workaround for a libstdc++-4.2 <tr1/hashtable> bug. This header uses
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Jun 2013 02:18:31 +0000 (02:18 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Jun 2013 02:18:31 +0000 (02:18 +0000)
commit87c29321c4b819d8a10f362f42fb7f7226820041
treedc215fec7f4cfd777ee9c0ba9f73e2c4a8485a61
parentd7abe109df5b169fe36d78915b5c0a5a4e6c2650
Add a workaround for a libstdc++-4.2 <tr1/hashtable> bug. This header uses

  return false;

in a function returning a pointer. 'false' was a null pointer constant in C++98
but is not in C++11. Punch a very small hole in the initialization rules in
C++11 mode to allow this specific case in system headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184395 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/SemaCXX/libstdcxx_pointer_return_false_hack.cpp [new file with mode: 0644]