[Bug c++/87178] Compilation failure when program contains multiple variables allocated in particular section, and at least one variable is C++17 "inline"
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 3 09:42:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87178
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #6)
> OK.
>
> FWIW Clang seems to create two different sections called foo, one COMDAT and
> one not.
Does it? That is I think impossible unless bypassing assembler.
If I try godbolt and look at clang++ trunk generated assembly, it doesn't honor
the user sections at all, whether using inline vars or not.
More information about the Gcc-bugs
mailing list