Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
offsetof1.C
blob: 1ee9be1e31a03915659ca752daec9adfcab644d6 [
file
] [
log
] [
blame
]
// { dg-do compile }
// PR c++/17221
#include
<cstddef>
template
<
int
N
>
struct
Bar
;
template
<>
struct
Bar
<
3
>
{};
template
<
class
T
>
struct
Foo
{
Bar
<
offsetof
(
T
,
a
)
+
3
>
k
;
};
struct
A
{
int
a
;
};
template
struct
Foo
<
A
>;