summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-09 02:08:28 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-09 02:08:28 +0000
commitc359c2b20327c1558e6a860bcc512e96ec7e40e9 (patch)
treeacd0f83508376a22a1ca944aed505e614a544152 /gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C
parent000990abade840217c3d9fb0c516595333989fb5 (diff)
downloadppe42-gcc-c359c2b20327c1558e6a860bcc512e96ec7e40e9.tar.gz
ppe42-gcc-c359c2b20327c1558e6a860bcc512e96ec7e40e9.zip
PR c++/46348
* semantics.c (cxx_eval_vec_init_1): Handle value-init. (cxx_eval_vec_init): Pass value_init arg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167623 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C
new file mode 100644
index 00000000000..9577f75d9fd
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C
@@ -0,0 +1,19 @@
+// PR c++/46348
+// { dg-options -std=c++0x }
+
+template<__SIZE_TYPE__ _Nw>
+ struct _Base
+ {
+ typedef unsigned long _WordT;
+
+ _WordT _M_w[_Nw];
+
+ constexpr
+ _Base()
+ : _M_w() { }
+ };
+
+int main()
+{
+ _Base<256> bs;
+}
OpenPOWER on IntegriCloud