From: Paolo Carlini Date: Thu, 17 Nov 2016 09:59:07 +0000 (+0000) Subject: re PR c++/68180 ([ICE] at cp/constexpr.c:2768 in initializing __vector in a loop) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c90928c8d6a1837696fbf5daf0016ed0e675a3b7;p=gcc.git re PR c++/68180 ([ICE] at cp/constexpr.c:2768 in initializing __vector in a loop) 2016-11-17 Paolo Carlini PR c++/68180 * g++.dg/cpp1y/pr68180.C: New. From-SVN: r242541 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7928a49186b..0a0a1b57e20 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-11-17 Paolo Carlini + + PR c++/68180 + * g++.dg/cpp1y/pr68180.C: New. + 2016-11-17 Prathamesh Kulkarni PR tree-optimization/78319 diff --git a/gcc/testsuite/g++.dg/cpp1y/pr68180.C b/gcc/testsuite/g++.dg/cpp1y/pr68180.C new file mode 100644 index 00000000000..acecff4fbe1 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/pr68180.C @@ -0,0 +1,15 @@ +// PR c++/68180 +// { dg-do compile { target c++14 } } + +typedef float __attribute__( ( vector_size( 16 ) ) ) float32x4_t; +constexpr float32x4_t fill(float x) { + float32x4_t v{0}; + constexpr auto vs = sizeof(v)/sizeof(v[0]); + for (auto i=0U; i