[LLVMbugs] [Bug 1992] New: switch() { case sizeof("str") } generates spurious warnings
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Feb 6 12:42:55 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=1992
Summary: switch() { case sizeof("str") } generates spurious
warnings
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nunoplopes at sapo.pt
CC: llvmbugs at cs.uiuc.edu
The following code generates spurious warnings (duplicate case value):
void func()
{
switch (2) {
case sizeof("abc"): break;
case sizeof("loooong"): break;
}
}
--
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