1 // PR c++/47904 2 3 template <bool> 4 struct S 5 { 6 }; 7 8 template <class T> 9 class U 10 { 11 T t; foo()12 int foo () const 13 { 14 S <sizeof (t) == 1> s; 15 return 1; 16 } bar()17 int bar () const 18 { 19 S <sizeof (t) == 1> s; 20 return 1; 21 } 22 }; 23 24