diff options
author | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-29 09:20:06 +0000 |
---|---|---|
committer | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-29 09:20:06 +0000 |
commit | eb16928ef2ec91480f42bf8f23f4bdfaa3a68413 (patch) | |
tree | 7a4eb6e962868b8905da08956e19636914dca987 /gcc/c-family/c-common.c | |
parent | d7377ee963144719435df9a53cd888891b19afde (diff) | |
download | gcc-eb16928ef2ec91480f42bf8f23f4bdfaa3a68413.tar.gz |
PR/69089: C++-11: Ingore "alignas(0)".
gcc/c-family/ChangeLog:
2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
PR/69089
* c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
"aligned" attribute.
gcc/testsuite/ChangeLog:
2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
PR/69089
* g++.dg/cpp0x/alignas6.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-common.c')
-rw-r--r-- | gcc/c-family/c-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index c086dee6ec8..b2219791881 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -7815,7 +7815,7 @@ handle_aligned_attribute (tree *node, tree ARG_UNUSED (name), tree args, else if (TYPE_P (*node)) type = node, is_type = 1; - if ((i = check_user_alignment (align_expr, false)) == -1 + if ((i = check_user_alignment (align_expr, true)) == -1 || !check_cxx_fundamental_alignment_constraints (*node, i, flags)) *no_add_attrs = true; else if (is_type) |