LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 21871 - [fuzz] Assertion `(NewDecl->getFriendObjectKind() || !OldDecl->getLexicalDeclContext()->isDependentContext()) && "non-friend with qualified name defined in dependent context"' failed.
Summary: [fuzz] Assertion `(NewDecl->getFriendObjectKind() || !OldDecl->getLexicalDecl...
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks: 23057
  Show dependency tree
 
Reported: 2014-12-10 16:20 PST by Sami Liedes
Modified: 2019-02-21 14:13 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
test case (213 bytes, text/x-c++src)
2014-12-10 16:20 PST, Sami Liedes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Liedes 2014-12-10 16:20:20 PST
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.
Comment 1 Reid Kleckner 2016-10-21 18:26:44 PDT
Still reproduces
Comment 2 Reid Kleckner 2019-02-21 14:13:02 PST
Still reproduces