http://llvm.org/bugs/show_bug.cgi?id=17624

            Bug ID: 17624
           Summary: Incorrect warning about a function not being needed
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: ASSIGNED
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Given

static void func();
void bar() {
  void func();
  func();
}
static void func() {}

clang warns that "function 'func' is not needed and will not be emitted", but
that is not the case. We do emit func.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to