[PATCH] D39937: [Sema] Improve diagnostics for const- and ref-qualified member functions
Jacob Bandes-Storch via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 11 00:31:39 PST 2017
jtbandes created this revision.
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 https://reviews.llvm.org/rL119336):
error: cannot initialize object parameter of type 'X0' with an expression of type 'X0'
error: 'this' argument to member function 'rvalue' is an lvalue, but function has rvalue ref-qualifier
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5591 bytes
Desc: not available
More information about the cfe-commits