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: unassignedclangb...@nondot.org
          Reporter: arpha...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to