Created attachment 13512 [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/SemaTemplateInstantiateDecl.cpp:47: bool SubstQualifier(clang::Sema &, const DeclT *, DeclT *, const clang::MultiLevelTemplateArgumentList &) [DeclT = clang::TagDecl]: Assertion `(NewDecl->getFriendObjectKind() || !OldDecl->getLexicalDeclContext()->isDependentContext()) && "non-friend with qualified name defined in dependent context"' failed.
Still reproduces