gcc/testsuite/g++.dg/ext/attrib26.C
raw| 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 | |
| 5 | template<class T> |
| 6 | struct __attribute__((aligned(1))) A |
| 7 | { |
| 8 | A& operator=(const A &t); |
| 9 | }; |
| 10 | |
| 11 | template<class T> |
| 12 | A<T>& A<T>::operator=(const A<T> &t) |
| 13 | { |
| 14 | } |