This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by jkorous-apple on Apr 12 2018, 7:12 AM.

Details

Summary

Following: https://llvm.org/svn/llvm-project/cfe/trunk@329804

For C++17 the wording of [over.built] p4 excluded bool:

For every pair (T , vq), where T is an arithmetic type other than bool, there exist
candidate operator functions of the form

vq T & operator++(vq T &);
T operator++(vq T &, int);

Diff Detail

Repository
rC Clang

Event Timeline

jkorous-apple created this revision.Apr 12 2018, 7:12 AM
jkorous-apple removed a subscriber: vsapsai.
rsmith accepted this revision.Apr 16 2018, 5:25 AM
This revision is now accepted and ready to land.Apr 16 2018, 5:25 AM
rsmith added inline comments.Apr 16 2018, 5:26 AM
SemaCXX/overloaded-builtin-operators-cxx17.cpp
8 ↗(On Diff #142167)

Removed, not deprecated.

This revision was automatically updated to reflect the committed changes.