From: Paolo Carlini Date: Sun, 1 Jan 2012 13:31:48 +0000 (+0000) Subject: re PR c++/51723 ([C++0x] delegating constructor ICE) X-Git-Tag: upstream/12.2.0~78841 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d2314ed1c90db68ee4e0e4c603773f5bc258f0b;p=platform%2Fupstream%2Fgcc.git re PR c++/51723 ([C++0x] delegating constructor ICE) 2012-01-01 Paolo Carlini PR c++/51723 * g++.dg/cpp0x/constexpr-delegating2.C: New. From-SVN: r182768 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7cc8411..9b6c8e5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-01-01 Paolo Carlini + + PR c++/51723 + * g++.dg/cpp0x/constexpr-delegating2.C: New. + 2012-01-01 Jan Hubicka PR rtl-optimization/51069 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-delegating2.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-delegating2.C new file mode 100644 index 0000000..51e2387 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-delegating2.C @@ -0,0 +1,25 @@ +// PR c++/51723 +// { dg-options -std=c++0x } + +template +struct A +{ + static constexpr int a[sizeof...(V)] = { V... }; +}; + +template constexpr int A::a[]; + +struct B +{ + const int* const b; + + template + constexpr B(const int(&b)[N]) + : b(b) + { } + + template + constexpr B(A) + : B(A::a) + { } +};