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

            Bug ID: 47796
           Summary: #pragma weak A = B doesn't handle the case where A is
                    already declared
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Testcase:

void f();
void g();
#pragma weak f = g
void h() { f(); }

... asserts in C mode, because it declares two different functions named 'f',
surprising the code that builds the CallExpr in h.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to