From: Paolo Carlini Date: Tue, 17 Oct 2017 19:49:06 +0000 (+0000) Subject: re PR c++/71821 (ICE on invalid C++11 code (incorrect argument for alignas): unexpect... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eaf95345d33a727885761fa48d7481405614351a;p=gcc.git re PR c++/71821 (ICE on invalid C++11 code (incorrect argument for alignas): unexpected expression ‘f’ of kind template_id_expr) 2017-10-17 Paolo Carlini PR c++/71821 * g++.dg/cpp0x/alignas12.C: New. From-SVN: r253828 --- 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" }