Summary: | ei_declare_aligned_stack_constructed_variable ignores alignment requirement of custom types | ||
---|---|---|---|
Product: | Eigen | Reporter: | Christoph Hertzberg <chtz> |
Component: | Core - general | Assignee: | Nobody <eigen.nobody> |
Status: | CONFIRMED --- | ||
Severity: | Crash | CC: | chtz, gael.guennebaud, jacob.benoit.1 |
Priority: | Lowest | Keywords: | test-needed |
Version: | 3.3 (current stable) | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Bug Depends on: | |||
Bug Blocks: | 1608 |
Description
Christoph Hertzberg
2019-10-14 12:31:58 UTC
Do we re Do we really want to fix that one? I mean compiling with `-DEIGEN_MAX_ALIGN_BYTES=0` while using a scalar type requiring over-alignment at the same time does not looks right to me. I'm not against a fix, but I see it as low priority. Ok, good point. We could statically assert, if someone tries to use an over-aligned type. But that requires some code to make sure that PODs don't break (e.g., alignof(double)==8 on many platforms). --> Changed to blocking 3.x Also, we don't really have a good mechanism to individually set the alignment of types (and I don't see good solutions without breaking the API ...) -- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1758. |