[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / sizeof4.C
blob4856a2741f32b420112657d8fc96df3c3bc632a0
1 // { dg-do compile }
2 // Origin: <anthwil at nortelnetworks dot com>
3 // c++/4933: using sizeof with comma operator as template argument
5 template<unsigned F>
6 struct Foo {};
8 template<typename T>
9 T makeT();
11 template<typename T,typename U>
12 struct Bar
14   typedef Foo
15   <
16     sizeof((makeT<T>(), makeT<U>()))
17   > Type;