Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/gen-attrs-26.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 } |