2012-01-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51723
* g++.dg/cpp0x/constexpr-delegating2.C: New.
From-SVN: r182768
+2012-01-01 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/51723
+ * g++.dg/cpp0x/constexpr-delegating2.C: New.
+
2012-01-01 Jan Hubicka <jh@suse.cz>
PR rtl-optimization/51069
--- /dev/null
+// PR c++/51723
+// { dg-options -std=c++0x }
+
+template <int... V>
+struct A
+{
+ static constexpr int a[sizeof...(V)] = { V... };
+};
+
+template <int... V> constexpr int A<V...>::a[];
+
+struct B
+{
+ const int* const b;
+
+ template <unsigned int N>
+ constexpr B(const int(&b)[N])
+ : b(b)
+ { }
+
+ template <int... V>
+ constexpr B(A<V...>)
+ : B(A<V...>::a)
+ { }
+};