[llvm-bugs] [Bug 47796] New: #pragma weak A = B doesn't handle the case where A is already declared
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Oct 11 13:46:03 PDT 2020
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: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201011/91c67b54/attachment.html>
More information about the llvm-bugs
mailing list