[llvm-bugs] [Bug 28143] New: Redefinition of 'tan' provokes assert
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 15 08:56:56 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28143
Bug ID: 28143
Summary: Redefinition of 'tan' provokes assert
Product: new-bugs
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: carlo.bertolli at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
The following program:
extern int tan (void);
int main (void) {
tan();
return 0;
}
Compiled with:
clang t53.c -O
Returns the following assert
clang-3.9: /localhd/cbertol/trunk/src/include/llvm/IR/Instructions.h:1554:
llvm::Value *llvm::CallInst::getArgOperand(unsigned int) const: Assertion `i <
getNumArgOperands() && "Out of bounds!"' failed.
It looks like that llvm is trying to simplify 'tan' as if it were the math.h
declaration, and not the re-declaration.
Compiled on bare-metal ubuntu on power 8 with:
llvm a94e734
clang e03851a
Using clang 3.8.1 does not result in error, but linking error as 'tan' is not
defined.
--
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/20160615/d82cedb7/attachment.html>
More information about the llvm-bugs
mailing list