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 21869 - [fuzz] Assertion `Proto && "Functions without a prototype cannot be overloaded"' failed.
Summary: [fuzz] Assertion `Proto && "Functions without a prototype cannot be overloade...
Status: RESOLVED FIXED
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:17 PST by Sami Liedes
Modified: 2016-10-21 18:27 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
test case (185 bytes, text/x-c++src)
2014-12-10 16:17 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:17:58 PST
Created attachment 13510 [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:5542: void clang::Sema::AddOverloadCandidate(clang::FunctionDecl *, clang::DeclAccessPair, ArrayRef<clang::Expr *>, clang::OverloadCandidateSet &, bool, bool, bool): Assertion `Proto && "Functions without a prototype cannot be overloaded"' failed.
Comment 1 Reid Kleckner 2016-10-21 18:27:54 PDT
Looks fixed.