Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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>
;