llvm-project/clang/test/CXX/dcl.dcl
David Majnemer 475b25eefa AST: Don't ignore alignas on EnumDecls when calculating alignment
We didn't consider any alignment attributes on an EnumDecl when
calculating alignment.

While we are here, ignore alignment specifications on typedef types if
one is used as the underlying type.  Otherwise, weird things happen:

enum Y : int;
Y y;

typedef int __attribute__((aligned(64))) u;
enum Y : u {};

What is the alignment of 'Y'?  It would be more consistent with the
overall design of enums with fixed underlying types to consider the
underlying type's UnqualifiedDesugaredType.

This fixes PR22279.

llvm-svn: 226653
2015-01-21 10:54:38 +00:00
..
basic.namespace Sema: Don't dyn_cast a null pointer in CheckUsingDeclQualifier 2014-12-17 02:41:36 +00:00
dcl.attr AST: Don't ignore alignas on EnumDecls when calculating alignment 2015-01-21 10:54:38 +00:00
dcl.enum PR18400: ignore cv-qualifiers on the underlying type of an enumeration. 2014-01-08 01:16:19 +00:00
dcl.link More tests for r201536. 2014-02-18 22:47:10 +00:00
dcl.spec DR1684: a constexpr member function need not be a member of a literal class type. 2014-12-16 23:12:52 +00:00
p4-0x.cpp The 'constexpr implies const' rule for non-static member functions is gone in 2013-04-21 01:08:50 +00:00