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