llvm-project/clang/test/CXX
David Blaikie d8018233d1 Revert "CWG2352: Allow qualification conversions during reference binding."
This reverts commit de21704ba9.

Regressed/causes this to error due to ambiguity:

  void f(const int * const &);
  void f(int *);
  int main() {
    int * x;
    f(x);
  }

(in case it's important - the original case where this turned up was a
member function overload in a class template with, essentially:

  f(const T1&)
  f(T2*)

(where T1 == X const *, T2 == X))

It's not super clear to me if this ^ is expected behavior, in which case
I'm sorry about the revert & happy to look into ways to fix the original
code.
2019-12-27 12:27:20 -08:00
..
basic C++ DR712 and others: handle non-odr-use resulting from an lvalue-to-rvalue conversion applied to a member access or similar not-quite-trivial lvalue expression. 2019-06-14 17:46:37 +00:00
class [c++20] Compute exception specifications for defaulted comparisons. 2019-12-15 22:02:31 -08:00
class.access Fix implementation of [temp.local]p4. 2019-02-15 21:53:07 +00:00
class.derived [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only 2018-09-28 01:16:43 +00:00
conv Specify an explicit underlying type for this enum to fix Windows 2018-06-29 20:41:23 +00:00
cpp PR41192: fix cases where "missing ';' after class" error would 2019-04-16 00:47:45 +00:00
dcl.dcl When diagnosing an ambiguity, only note the candidates that contribute 2019-10-24 14:58:29 -07:00
dcl.decl [c++2a] Allow comparison functions to be explicitly defaulted. 2019-10-22 18:16:17 -07:00
drs Revert "CWG2352: Allow qualification conversions during reference binding." 2019-12-27 12:27:20 -08:00
except [c++20] Compute exception specifications for defaulted comparisons. 2019-12-15 22:02:31 -08:00
expr [Concepts] Constrained partial specializations and function overloads. 2019-12-23 08:37:35 +02:00
lex [C++20] Implement context-sensitive header-name lexing and pp-import parsing in the preprocessor. 2019-04-11 21:18:23 +00:00
module C++ DR2387: a variable template declared wtih (or instantiated with) a 2019-04-26 01:51:08 +00:00
modules-ts [c++2a] Implement semantic restrictions for 'export' declarations. 2019-04-22 22:50:11 +00:00
over When diagnosing an ambiguity, only note the candidates that contribute 2019-10-24 14:58:29 -07:00
special When diagnosing an ambiguity, only note the candidates that contribute 2019-10-24 14:58:29 -07:00
stmt.stmt Refactor the way we handle diagnosing unused expression results. 2019-01-04 16:58:14 +00:00
temp [Concepts] Constrained partial specializations and function overloads. 2019-12-23 08:37:35 +02:00