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 21958 - [fuzz, binary] Assertion `D.getName().getKind() != UnqualifiedId::IK_TemplateId && "should have a 'template<>' for this decl"' failed.
Summary: [fuzz, binary] Assertion `D.getName().getKind() != UnqualifiedId::IK_Template...
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-18 06:53 PST by Sami Liedes
Modified: 2015-03-30 19:00 PDT (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
test case (172 bytes, text/x-c++src)
2014-12-18 06:53 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-18 06:53:59 PST
Created attachment 13569 [details]
test case

Fuzzing discovered that the attached test case, which contains unprintable characters, 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/SemaDecl.cpp:5560: clang::NamedDecl* clang::Sema::ActOnVariableDeclarator(clang::Scope*, clang::Declarator&, clang::DeclContext*, clang::TypeSourceInfo*, clang::LookupResult&, clang::MultiTemplateParamsArg, bool&): Assertion `D.getName().getKind() != UnqualifiedId::IK_TemplateId && "should have a 'template<>' for this decl"' failed.