[llvm-bugs] [Bug 40744] [RFE] allow offsetof() in constexpr

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 15 14:21:18 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40744

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Those are both contexts in which the class is not yet complete. It's not
reasonable to expect Clang to be able to know the offset of a field before the
class is complete, even though the ABIs we currently support don't typically
allow later-declared members to affect the layout of earlier-declared ones.

-- 
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/20190215/1d2e7404/attachment.html>


More information about the llvm-bugs mailing list