1 // PR c++/70332 2 // { dg-do run { target c++14 } } 3 4 template <class T> 5 struct C 6 { 7 T m; 8 T *n = &m; 9 }; 10 11 C<int> c { }; 12 13 int main()14main () 15 { 16 *c.n = 5; 17 if (c.m != 5) 18 __builtin_abort (); 19 20 C<int> d { 10 }; 21 *d.n = *d.n + 1; 22 if (d.m != 11) 23 __builtin_abort (); 24 } 25