Bug 1713865
Summary: | gcc 9 regression: "error: requested alignment is not an integer constant" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kalev Lember <klember> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 30 | CC: | davejohansen, dmalcolm, fweimer, jakub, jwakely, law, mpolacek, msebor, nickc |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-09-07 12:54:05 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1675396 |
Description
Kalev Lember
2019-05-25 09:45:05 UTC
Looks like this regressed with r261971. I'll open an upstream PR. Great, thanks for tracking that down! Reduced test by Matthew: constexpr unsigned long a(const unsigned long b) { return b; } const unsigned long c = a(alignof(int)); alignas(c) char d; Fixed for GCC 9.2 and 10. Should be in the next Fedora update. Awesome, thanks! This is now fixed in gcc 9.2.1. Thanks! |