Error using a constexpr as a template parameter within the same class

If I try to compile the following C++0x code, I get an error: template<int n> struct foo { }; struct bar { static constexpr int number() { return 256; } void function(foo<number...