PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / sizeof5.C
blob4096fed5329ccca978cb1dd2c2800be509e23e2c
1 // PR c++/9907
2 // Origin: nes@lrde.epita.fr
3 // sizeof(foo()) was not considered constant.
6 template <unsigned n> struct bar {};
8 int foo();
10 template <class T>
11 void baz()
13   bar<sizeof(foo())> b;