[LLVMbugs] [Bug 14532] New: -Wdangling-else doesn't look through switch labels
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Dec 6 18:23:19 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14532
Bug #: 14532
Summary: -Wdangling-else doesn't look through switch labels
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
-Wdangling-else is smart enough to look through for, while, switch, etc. But
not through labels; we issue no warning on this:
if (a)
switch (0) default:
if (b)
stmt1;
else
stmt2;
--
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