[llvm-bugs] [Bug 31746] New: ObjC: Lightweight generics inside of of a subclass, when used in blocks, warn incorrectly

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 24 14:37:07 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31746

            Bug ID: 31746
           Summary: ObjC: Lightweight generics inside of of a subclass,
                    when used in blocks, warn incorrectly
           Product: clang
           Version: 3.9
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: conrad at conradkramer.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17889
  --> https://llvm.org/bugs/attachment.cgi?id=17889&action=edit
The example code illustrating the warning

This bug is best explained by the attached code.

The attached code should not produce a warning, but produces
`-Wmismatched-parameter-types` in `clang-800.0.42.1`. If I replace the block in
the example with a type that is not a block, but still a generic, it compiles
without warnings.

I can look into fixing this issue if someone could point me to the component
that handles this.

-- 
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/20170124/c8486003/attachment.html>


More information about the llvm-bugs mailing list