https://bugs.llvm.org/show_bug.cgi?id=48105
Bug ID: 48105
Summary: Clang does not reject .ctor and .init_array in the
same TU
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
GCC disallows placing function pointers in the .ctors (or .ctors.*) sections in
C++ mode, but Clang does not.
Example:
https://compiler-explorer.com/z/P6fxoP
However, in C, this is fine for both GCC and Clang:
https://compiler-explorer.com/z/9xTh1e
--
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