[LLVMbugs] [Bug 21221] New: bogus unused-local-typedef warning

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 9 01:23:00 PDT 2014


            Bug ID: 21221
           Summary: bogus unused-local-typedef warning
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Axel.Naumann at cern.ch
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I'd claim A_t is used:

$ clang --version
clang version 3.6.0 (trunk 219303)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ cat T.cxx
struct A{};
void f(A* o) {
   typedef A A_t;
$ clang -c -Wunused-local-typedef T.cxx
T.cxx:3:14: warning: unused typedef 'A_t' [-Wunused-local-typedef]
   typedef A A_t;
1 warning generated.

Thanks for looking at it!

Cheers, Axel.

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/20141009/e4682758/attachment.html>

More information about the llvm-bugs mailing list