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