1 // { dg-do compile } 2 // Origin: <anthwil at nortelnetworks dot com> 3 // c++/4933: using sizeof with comma operator as template argument 4 5 template<unsigned F> 6 struct Foo {}; 7 8 template<typename T> 9 T makeT(); 10 11 template<typename T,typename U> 12 struct Bar 13 { 14 typedef Foo 15 < 16 sizeof((makeT<T>(), makeT<U>())) 17 > Type; 18 }; 19