Open TKaipeng opened 2 years ago
Error message
test.cpp:7:35: error: alias must point to a defined variable or function void f3() __attribute__ ((weak, alias("f1")));
test.cpp
extern "C" { static void * f1() {}; // static void* f1() {}; // Clang works well, GCC not void f2() __attribute__ ((weak, alias("_ZL2f1v"))); // GCC works well, Clang not void f3() __attribute__ ((weak, alias("f1"))); }
command
clang++ test.cpp -S
version: commit 3af7bbca4a0ef64de64b8bb38d3b167673ec60f0
It's compiled as expected without "static" modifier.
@llvm/issue-subscribers-clang-codegen
Error message
test.cpp
command
version: commit 3af7bbca4a0ef64de64b8bb38d3b167673ec60f0
It's compiled as expected without "static" modifier.