[LLVMbugs] [Bug 17639] New: alias attribute produces a definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 21 13:02:19 PDT 2013


            Bug ID: 17639
           Summary: alias attribute produces a definition
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

gcc rejects

void foo(void) __attribute((alias("__foo")));
void foo(void) {
void __foo(void) {}


test.c:21:6: error: redefinition of ‘foo’
 void foo(void) {
test.c:20:6: note: previous definition of ‘foo’ was here
 void foo(void) __attribute((alias("__foo")));

We should reject it too.

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/20131021/a01ff34f/attachment.html>

More information about the llvm-bugs mailing list