forked from OSchip/llvm-project
6f84779674
When an overloaded member function has a ref-qualifier, like: class X { void f() &&; void f(int) &; }; we would print strange notes when the ref-qualifier doesn't fit the value category: X x; x.f(); X().f(0); would both print a note "no known conversion from 'X' to 'X' for object argument" on their relevant overload instead of pointing out the mismatch in value category. At first I thought the solution is easy: just use the FailureKind member of the BadConversionSequence struct. But it turns out that we weren't properly setting this for function arguments. So I went through TryReferenceInit to make sure we're doing that right, and found a number of notes in the existing tests that improved as well. Fixes PR47791. Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D90123 |
||
---|---|---|
.. | ||
dr0xx.cpp | ||
dr1xx.cpp | ||
dr2xx.cpp | ||
dr3xx.cpp | ||
dr4xx.cpp | ||
dr5xx.cpp | ||
dr6xx.cpp | ||
dr7xx.cpp | ||
dr9xx.cpp | ||
dr10xx.cpp | ||
dr11xx.cpp | ||
dr12xx.cpp | ||
dr13xx.cpp | ||
dr14xx.cpp | ||
dr15xx.cpp | ||
dr16xx.cpp | ||
dr17xx.cpp | ||
dr18xx.cpp | ||
dr19xx.cpp | ||
dr20xx.cpp | ||
dr21xx.cpp | ||
dr22xx.cpp | ||
dr23xx.cpp | ||
dr118.cpp | ||
dr158.cpp | ||
dr412.cpp | ||
dr1748.cpp |