http://llvm.org/bugs/show_bug.cgi?id=17639
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: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
gcc rejects
void foo(void) __attribute((alias("__foo")));
void foo(void) {
}
void __foo(void) {}
with
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs