Increment incorrectly allowed for bool in unevaluated contexts #47517
Labels
bugzilla
Issues migrated from bugzilla
c++17
c++20
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
confirmed
Verified by a second party
Extended Description
Compiling this well-formed program:
with "clang++ -std=c++2a" (https://godbolt.org/z/39xM1E) diagnoses:
The compiler knows that the language forbids increment of bools outside a requires-expression, but apparently not within a requires-expression.
The text was updated successfully, but these errors were encountered: