https://bugs.llvm.org/show_bug.cgi?id=51442
Bug ID: 51442
Summary: Regression since "Do not create LLVM IR `constant`s
for objects with dynamic initialisation"
Product: clang
Version: trunk
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],
[email protected], [email protected]
Blocks: 51236
Since 21aa107eb79f8ddc5e7ca4e8f3476338dfa90049,
https://reviews.llvm.org/D102693, 'Reland "Do not create LLVM IR `constant`s
for objects with dynamic initialisation"', the following C++ snippet fails to
compile:
$ cat fakeplugin2.cpp
__attribute__ ((section (".qtmetadata"))) __attribute__((used)) void *const
pluginSection = (void*)(0xc0ffeec0ffeeL);
__attribute__ ((section (".qtmetadata"))) __attribute__((used)) const char
message[] = "QTMETADATA";
$ clang -target x86_64-linux-gnu -c fakeplugin2.cpp
fakeplugin2.cpp:2:76: error: 'message' causes a section type conflict with
'pluginSection'
__attribute__ ((section (".qtmetadata"))) __attribute__((used)) const char
message[] = "QTMETADATA";
^
fakeplugin2.cpp:1:77: note: declared here
__attribute__ ((section (".qtmetadata"))) __attribute__((used)) void *const
pluginSection = (void*)(0xc0ffeec0ffeeL);
^
1 error generated.
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=51236
[Bug 51236] [meta] 13.0.0 Release Blockers
--
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