]> granicus.if.org Git - clang/commit
Audit and finish the implementation of C++0x nullptr, fixing two
authorDouglas Gregor <dgregor@apple.com>
Sat, 21 May 2011 23:15:46 +0000 (23:15 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 21 May 2011 23:15:46 +0000 (23:15 +0000)
commit84ee2eeec9f63e4938bafd060105fa4f0c9cd89b
treec1152607c7ab0a8c886f9380f3ed0b49b827876d
parent9625e44c0252485277a340746ed8ac950686156f
Audit and finish the implementation of C++0x nullptr, fixing two
minor issues along the way:
  - Non-type template parameters of type 'std::nullptr_t' were not
  permitted.
  - We didn't properly introduce built-in operators for nullptr ==,
  !=, <, <=, >=, or > as candidate functions .

To my knowledge, there's only one (minor but annoying) part of nullptr
that hasn't been implemented: catching a thrown 'nullptr' as a pointer
or pointer-to-member, per C++0x [except.handle]p4.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131813 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LanguageExtensions.html
lib/Lex/PPMacroExpansion.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplate.cpp
test/Lexer/has_feature_cxx0x.cpp
test/SemaCXX/nullptr.cpp