[llvm-bugs] [Bug 44876] New: -Wdocumentation crash in Sema::checkReturnsCommand for typedef'ed function pointers

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 11 12:36:56 PST 2020


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

            Bug ID: 44876
           Summary: -Wdocumentation crash in Sema::checkReturnsCommand for
                    typedef'ed function pointers
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lapkow at synopsys.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

The following test causes a crash with -Wdocumentation

typedef int funcptr();
/**
 * @return something
 */
funcptr *pFunc;


clang -Wdocumentation -c reproducer.cpp

-- 
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/20200211/85db06b6/attachment.html>


More information about the llvm-bugs mailing list