1// PR c++/9907 2// Origin: nes@lrde.epita.fr 3// sizeof(foo()) was not considered constant. 4 5 6template <unsigned n> struct bar {}; 7 8int foo(); 9 10template <class T> 11void baz() 12{ 13 bar<sizeof(foo())> b; 14} 15 16