Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
gen-attrs-12.C
blob: 504b4565679c489469a7663e9d108e6987911cfd [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// PR c++/13791
template
<
typename
T
>
struct
O
{
struct
[[
gnu
::
packed
]]
I
{
int
i
;
char
c
;
};
I
*
foo
();
};
template
<
typename
T
>
typename
O
<
T
>::
I
*
O
<
T
>::
foo
()
{
return
0
;
}
template
class
O
<int>
;