// PR c++/89187 // { dg-do compile { target c++11 } } // { dg-options "-Os -fno-tree-ccp -fno-tree-sra -fno-inline" } template struct A { typedef T __attribute__((vector_size (N))) type; }; template using B = typename A::type; template using C = B; struct D { D (C x) : d{x[3]} {} D foo () { return d; } C d; }; extern D d; struct { D bar () { return d; } } l; struct E { void baz () const; }; void E::baz () const { l.bar ().foo (); }