[llvm-bugs] [Bug 43445] Merge constant literals
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 26 18:26:05 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43445
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190927/f2f30933/attachment.html>
More information about the llvm-bugs
mailing list