1// PR c++/38705 2// { dg-do compile } 3 4typedef int T; 5typedef __SIZE_TYPE__ size_t; 6extern "C" void *memcpy (void *, const void *, size_t); 7 8void 9foo (char *p, const int q) 10{ 11 memcpy (p, &q, sizeof (int)); 12} 13 14struct S 15{ 16 T t; 17 int u; 18 int bar () const; 19 template <class T> void foo (const T &x) const {} 20}; 21 22int 23S::bar () const 24{ 25 foo (u); 26 foo (t); 27} 28