I wonder how the compiler deals with this? It sure compiles but the templatized class c has to instantiate at compile time, how on earth is it suppose to dereference the asdf pointer :confused:PHP Code:struct asdf{int z;};
template <asdf* y>
class c{static const int l;};
template <asdf* y>
const int c<y>::l=y->z;
