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