[LLVMbugs] [Bug 10159] New: clang could do a better job at warning for implicit conversion to bool
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jun 19 19:39:49 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10159
Summary: clang could do a better job at warning for implicit
conversion to bool
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pichet2000 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
MSVC will emit warnings for the following code, clang not:
enum E {
e = 3,
};
int main() {
bool var1 = e; // truncation from 'E' to 'bool'
bool var2 = 3; // truncation from 'int' to 'bool'
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list