llvm-project/clang/test/CXX/over
Jacob Bandes-Storch bb93578108 [Sema] Improve diagnostics for const- and ref-qualified member functions
(Re-submission of D39937 with fixed tests.)

Adjust wording for const-qualification mismatch to be a little more clear.

Also add another diagnostic for a ref qualifier mismatch, which previously produced a useless error (this error path is simply very old; see rL119336):

Before:
  error: cannot initialize object parameter of type 'X0' with an expression of type 'X0'

After:
  error: 'this' argument to member function 'rvalue' is an lvalue, but function has rvalue ref-qualifier

Reviewers: aaron.ballman

Reviewed By: aaron.ballman

Subscribers: lebedev.ri, cfe-commits

Differential Revision: https://reviews.llvm.org/D41646

llvm-svn: 321609
2017-12-31 18:27:29 +00:00
..
over.built DR583, DR1512: Implement a rewrite to C++'s 'composite pointer type' rules. 2016-10-21 22:00:42 +00:00
over.load
over.match [Sema] Improve diagnostics for const- and ref-qualified member functions 2017-12-31 18:27:29 +00:00
over.oper/over.literal Add a note that points to the linkage specifier for the C++ linkage errors 2016-11-02 15:46:34 +00:00
over.over [c++1z] P0012R1: Implement a few remaining pieces: downgrade diagnostic for 2016-10-22 01:32:19 +00:00