1// { dg-do compile }
2// PR c++/17221
3
4#include <cstddef>
5
6template <int N> struct Bar;
7template <> struct Bar<3> {};
8
9template <class T>
10struct Foo {
11   Bar<offsetof(T, a) + 3> k;
12};
13
14struct A { int a; };
15
16template struct Foo<A>;
17