// PR c++/41038 struct S { int size() const; }; template struct Packer { int foo() { return Packer::var.size(); } const S& var; };