[llvm-bugs] [Bug 36130] New: Assertion failed: (Proto && "Functions without a prototype cannot be overloaded"), function AddOverloadCandidate, file tools/clang/lib/Sema/SemaOverload.cpp, line 5901.
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 28 14:14:47 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36130
Bug ID: 36130
Summary: Assertion failed: (Proto && "Functions without a
prototype cannot be overloaded"), function
AddOverloadCandidate, file
tools/clang/lib/Sema/SemaOverload.cpp, line 5901.
Product: new-bugs
Version: 6.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dimitry at andric.com
CC: llvm-bugs at lists.llvm.org
As reported in https://bugs.freebsd.org/205934, a configure script test uses
the following very short fragment to check #pragma weak support:
extern int test2();
#pragma weak test2 = test1
int test1() { return 0; }
int main() { return test2(); return 0; }
Compiling this without any special flags already asserts:
$ clang -cc1 -triple x86_64 -S weak.c
Assertion failed: (Proto && "Functions without a prototype cannot be
overloaded"), function AddOverloadCandidate, file
/usr/src/contrib/llvm/tools/clang/lib/Sema/SemaOverload.cpp, line 5903.
Abort trap
This has apparently been happening since forever, the oldest version I checked
was trunk r185261, but it is still reproducible with trunk r323607, as of
2018-01-28.
Would be nice to fix it after all those years... :)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180128/44498a3c/attachment.html>
More information about the llvm-bugs
mailing list