1 // PR c++/71638 2 // { dg-do compile { target c++11 } } 3 // { dg-options "-Wall" } 4 5 struct A { 6 struct { 7 int i; 8 int &j = i; 9 } b; 10 int a = b.j; 11 }; 12 13 void bar (A); 14 15 void foo()16 foo () 17 { 18 bar (A{}); 19 } 20