repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
gen-attrs-11.C
blob
504b4565679c489469a7663e9d108e6987911cfd
1
// { dg-do compile { target c++11 } }
2
// PR c++/13791
3
4
template <typename T> struct O {
5
struct [[gnu::packed]] I {
6
int i;
7
char c;
8
};
9
10
I* foo();
11
};
12
13
template <typename T>
14
typename O<T>::I*
15
O<T>::foo() { return 0; }
16
17
template class O<int>;