1 // PR c++/28659 2 // The attribute was causing us to get confused in merge_types when 3 // combining the template type with an uninstantiated version. 4 // { dg-do compile { target c++11 } } 5 6 template<class T> 7 struct [[gnu::aligned(1)]] A 8 { 9 A& operator=(const A &t); 10 }; 11 12 template<class T> 13 A<T>& A<T>::operator=(const A<T> &t) 14 { 15 } 16