https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94929
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to David Seifert from comment #5) > (In reply to Marek Polacek from comment #3) > > I'm going to backport the fix to 8 if it passes the usual testing. > > Hi Marek, > could you also test the inlined code. Defining some const and then using it > alignas worked previously, the problem comes from doing all of it in > alignas(). Both the original testcase in this PR and the test in Comment 2 now compile even with GCC 8.