https://bugs.llvm.org/show_bug.cgi?id=44064
Bug ID: 44064
Summary: Missing warning for comparison with string literals
(expanded from macro)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangb...@nondot.org
Reporter: david.bolvan...@gmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
#define PATH_DELIMITER "/"
int foo() {
return PATH_DELIMITER != "/";
}
int foo2() {
return "/" != "/";
}
Clang warns only for foo2, GCC for both and GCC caught a real bug.
I suspect this is just a missing diagnostic... or?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs