/cp 2017-11-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/65579 * decl2.c (finish_static_data_member_decl): If there's an initializer, complete the type and re-apply the quals. /testsuite 2017-11-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/65579 * g++.dg/cpp0x/constexpr-template11.C: New. From-SVN: r254461
17 lines
182 B
C
17 lines
182 B
C
// PR c++/65579
|
|
// { dg-do link { target c++11 } }
|
|
|
|
template <typename>
|
|
struct S {
|
|
int i;
|
|
};
|
|
|
|
struct T {
|
|
static constexpr S<int> s = { 1 };
|
|
};
|
|
|
|
int main()
|
|
{
|
|
return T::s.i;
|
|
}
|