re PR c++/79380 (ICE on C++11 code with illegal alignas specifier on x86_64-linux...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 19 Feb 2017 17:43:41 +0000 (17:43 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 19 Feb 2017 17:43:41 +0000 (17:43 +0000)
commitf46e2bc9236de506841dca92414b217a1d90bbea
tree58cdbaf6d9157a96f7b918a1f5e5359165442417
parent74705cc6492f04d4d39d972322a57bd2e3a78f33
re PR c++/79380 (ICE on C++11 code with illegal alignas specifier on x86_64-linux-gnu: unexpected expression â€˜f’ of kind overload)

/cp
2017-02-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/79380
* typeck.c (cxx_alignas_expr): Reject a non-integral alignas
argument.

/testsuite
2017-02-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/79380
* g++.dg/cpp0x/alignas8.C: New.

From-SVN: r245578
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/alignas8.C [new file with mode: 0644]