Commit 1d2314ed by Paolo Carlini Committed by Paolo Carlini

re PR c++/51723 ([C++0x] delegating constructor ICE)

2012-01-01  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/51723
	* g++.dg/cpp0x/constexpr-delegating2.C: New.

From-SVN: r182768
parent 06f1716b
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> 2012-01-01 Jan Hubicka <jh@suse.cz>
PR rtl-optimization/51069 PR rtl-optimization/51069
......
// 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)
{ }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment