[LLVMbugs] [Bug 21294] New: incorrect -Winfinite-recursion warning on potentially-unevaluated operand
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 15 19:26:52 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21294
Bug ID: 21294
Summary: incorrect -Winfinite-recursion warning on
potentially-unevaluated operand
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu, rtrieu at google.com
Classification: Unclassified
This:
#include <typeinfo>
int f() {
typeid(f());
return 0;
}
gives:
<stdin>:2:9: warning: all paths through this function will call itself
[-Winfinite-recursion]
int f() {
^
... which is not true, because in this case the operand of typeid(...) is
unevaluated.
--
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/20141016/e65d4b85/attachment.html>
More information about the llvm-bugs
mailing list