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

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

Reply via email to