diff options
author | Marek Polacek <polacek@redhat.com> | 2020-05-15 10:59:01 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-05-18 15:50:12 -0400 |
commit | 100fdb1f09b484ef100b638b28a260857d85f9dd (patch) | |
tree | 843472f613abf74a1cb577886e164f7e1550a5c5 /gcc/tree-object-size.c | |
parent | 642dc602f89b2c11d5d833a52f37b04427a27cab (diff) | |
download | gcc-100fdb1f09b484ef100b638b28a260857d85f9dd.zip gcc-100fdb1f09b484ef100b638b28a260857d85f9dd.tar.gz gcc-100fdb1f09b484ef100b638b28a260857d85f9dd.tar.bz2 |
c++: Don't add built-in operator for ++ on bool.
This feels extremely obscure but at least it's an opportunity to fix the
comments. P0002R1 removed deprecated operator++(bool) in C++17 so let's
avoid adding a builtin overload candidate for ++ when the type is bool.
* call.c (add_builtin_candidate): Don't create a builtin overload
candidate for ++ when type is bool in C++17.
* g++.dg/overload/builtin5.C: New test.
Diffstat (limited to 'gcc/tree-object-size.c')
0 files changed, 0 insertions, 0 deletions