From eaf95345d33a727885761fa48d7481405614351a Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 17 Oct 2017 19:49:06 +0000 Subject: [PATCH] =?utf8?q?re=20PR=20c++/71821=20(ICE=20on=20invalid=20C++1?= =?utf8?q?1=20code=20(incorrect=20argument=20for=20alignas):=20unexpected?= =?utf8?q?=20expression=20=E2=80=98f=E2=80=99=20of=20kind=20template?= =?utf8?q?=5Fid=5Fexpr)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2017-10-17 Paolo Carlini PR c++/71821 * g++.dg/cpp0x/alignas12.C: New. From-SVN: r253828 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/alignas12.C | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/alignas12.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3da50bfe4f1..0fb2c0ab6d2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-17 Paolo Carlini + + PR c++/71821 + * g++.dg/cpp0x/alignas12.C: New. + 2017-10-17 Paolo Carlini PR c++/71368 diff --git a/gcc/testsuite/g++.dg/cpp0x/alignas12.C b/gcc/testsuite/g++.dg/cpp0x/alignas12.C new file mode 100644 index 00000000000..bc163441529 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/alignas12.C @@ -0,0 +1,6 @@ +// PR c++/71821 +// { dg-do compile { target c++11 } } + +template < typename > constexpr int f () { return 4; } + +alignas (f < int >) char c; // { dg-error "non-integral type" } -- 2.30.2