You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Extended Description
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(Meth) && "expected conversion"' failed.
The text was updated successfully, but these errors were encountered: