Commit f3ae5c0c by Paolo Carlini Committed by Paolo Carlini

re PR c++/60842 (In-class initializer causes a strange error)

2015-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60842
	* g++.dg/cpp0x/nsdmi-template15.C: New.

From-SVN: r225679
parent 2f40fae2
2015-07-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60842
* g++.dg/cpp0x/nsdmi-template15.C: New.
2015-07-10 Jiong Wang <jiong.wang@arm.com> 2015-07-10 Jiong Wang <jiong.wang@arm.com>
* gcc.target/aarch64/got_mem_hoist_1.c: New test. * gcc.target/aarch64/got_mem_hoist_1.c: New test.
......
// PR c++/60842
// { dg-do compile { target c++11 } }
namespace N {
class I {};
}
template <typename, typename>
class J {};
class S {
J<int, N::I> j = J<int, N::I>{};
};
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