https://bugs.llvm.org/show_bug.cgi?id=43445
Richard Smith <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #5 from Richard Smith <[email protected]> ---
There might be a legitimate feature request for lld here, but as a Clang bug,
this is invalid: the proposed optimization is incorrect at the language
semantics level. Distinct global constants are required to be non-overlapping
(see C++ [intro.object]p9: "Two [distinct complete] objects [...] have distinct
addresses and occupy disjoint bytes of storage.")
--
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