1 // PR c++/80095 2 // { dg-do compile { target c++14 } } 3 4 struct A 5 { 6 void* p = this; 7 }; 8 9 void foo()10 foo () 11 { 12 const A& a = A{}; 13 A&& a2 = A{}; 14 const A& a3{}; 15 A&& a4{}; 16 } 17