[LLVMbugs] [Bug 20454] New: Missing warning for implicit cast from qualified id to class that shares a conforming protocol
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jul 25 14:58:31 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20454
Bug ID: 20454
Summary: Missing warning for implicit cast from qualified id to
class that shares a conforming protocol
Product: clang
Version: trunk
Hardware: Macintosh
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: yiding at fb.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 12828
--> http://llvm.org/bugs/attachment.cgi?id=12828&action=edit
repro.m
Implicit casting from qualified ID that conforms to a protocol to a class that
conforms to a protocol should give a warning but does not, even with -Wall.
This allows for unsafe casts to pass by with no warning, which allows for
impossible function calls or ivar accesses to happen (demonstrated in attached
repro case) with no warnings.
The code seems to allow this explicitly and there are tests which assert that
this should be allowed. As this seems pretty broken I don't see why it ought to
be.
--
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/20140725/51596459/attachment.html>
More information about the llvm-bugs
mailing list