[llvm-bugs] [Bug 36584] New: Regression(r313729): Invalid -Wunused-function warning

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 2 16:01:46 PST 2018


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

            Bug ID: 36584
           Summary: Regression(r313729): Invalid -Wunused-function warning
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: arphaman at gmail.com
                CC: llvm-bugs at lists.llvm.org

The commit r313729 introduce a new incorrect unused function warning:

~ $ cat foo.cpp
typedef const struct
{
    char* Name;
} Type;
Type* Function();
~ $ clang  -std=c++11 -c -Werror=unused-function foo.cpp
foo.cpp:5:7: error: unused function 'Function' [-Werror,-Wunused-function]
Type* Function();
      ^
1 error generated.

-- 
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/20180303/bb9974aa/attachment.html>


More information about the llvm-bugs mailing list