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

kukyakya at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #2 from kukyakya at gmail dot com ---
Reopening the bug. It still does not accept 'alignas(pack...)' form.

-----------------------------------
#include <iostream>

struct test {
        alignas(int, double) char _;
};

int main()
{
  std::cout << "alignof(int) is " << alignof(int) << std::endl;
  std::cout << "alignof(double) is " << alignof(double) << std::endl;
  std::cout << "alignof(test) is " << alignof(test) << std::endl;
}
-----------------------------------
$ g++ -Wall -Wextra -std=c++14 -pedantic -O2 a.cpp
a.cpp:4:13: error: expected ‘)’ before ‘,’ token
  alignas(int, double) char _;
             ^
a.cpp:4:13: error: expected ‘)’ before ‘,’ token
a.cpp:4:13: error: expected unqualified-id before ‘,’ token
-----------------------------------

Reply via email to