https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89683

            Bug ID: 89683
           Summary: Function-style cast inside alignas on struct does not
                    compile
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: deaeod at gmail dot com
  Target Milestone: ---

The following snippet does not compile with g++:

struct alignas(unsigned(8)) s {};

Workaround:

struct alignas((unsigned)8) s {};

Reply via email to