This is an archive of the discontinued LLVM Phabricator instance.

[clang] SequenceChecker: C++17 sequencing rule for overloaded operators.
ClosedPublic

Authored by riccibruno on Jun 6 2020, 5:06 AM.

Details

Summary

In C++17 the operand(s) of an overloaded operator are sequenced as for the corresponding built-in operator when the overloaded operator is called with the operator notation ([over.match.oper]p2).

Reported in PR35340.

Diff Detail

Event Timeline

riccibruno created this revision.Jun 6 2020, 5:06 AM
riccibruno edited the summary of this revision. (Show Details)Jun 8 2020, 1:51 PM
riccibruno retitled this revision from [clang][Sema] SequenceChecker: C++17 sequencing rule for overloaded operators. to [clang] SequenceChecker: C++17 sequencing rule for overloaded operators..Jun 11 2020, 3:19 AM

@rsmith Friendly ping on this patch and D81003.

rsmith accepted this revision.Jun 16 2020, 5:20 PM

It would be nice to avoid the duplication between the builtin and overloaded cases here, but I don't see a good way to do that. LGTM.

This revision is now accepted and ready to land.Jun 16 2020, 5:20 PM
This revision was automatically updated to reflect the committed changes.