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: unassignedb...@nondot.org
Reporter: dimi...@andric.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs