[PATCH] D45569: [Sema] Disable built-in increment operator for bool in overload resolution in C++17

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 16 05:26:53 PDT 2018


rsmith added inline comments.


================
Comment at: SemaCXX/overloaded-builtin-operators-cxx17.cpp:8
+void foo(BoolRef br) {
+  // C++ [over.built]p3: Increment for bool got deprecated in C++17.
+  bool b = br++; // expected-error{{cannot increment value of type 'BoolRef'}}
----------------
Removed, not deprecated.


Repository:
  rC Clang

https://reviews.llvm.org/D45569





More information about the cfe-commits mailing list