Created attachment 13472 [details] test case Fuzzing discovered that the attached test case, when given as input to clang -fno-crash-diagnostics -std=c++11 -xc++ -c -emit-llvm causes this assertion failure: clang-3.6: tools/clang/lib/Sema/SemaOverload.cpp:8546: (anonymous namespace)::OverloadCandidateKind (anonymous namespace)::ClassifyOverloadCandidate(clang::Sema &, clang::FunctionDecl *, std::string &): Assertion `isa<CXXConversionDecl>(Meth) && "expected conversion"' failed.
more sane test case: class C {}; void &C::~C() { C::~C; }; this also crashes MSVC
Looks like we fixed it somewhere along the way: t.cpp:2:6: error: cannot form a reference to 'void' void &C::~C() { C::~C; }; ^ t.cpp:2:20: error: reference to destructor must be called; did you mean to call it with no arguments? void &C::~C() { C::~C; }; ~~~^~ () 2 errors generated.