inherited variables in template class not inheriting

This is a discussion on inherited variables in template class not inheriting within the C++ Programming forums, part of the General Programming Boards category; okay, i'll just show you the code first:
Code:
template <class T>
class PULT_Layer
{
public:
virtual ~PULT_Layer() { } ...

>this works just dandy under MSVCPP6
A lot of broken code works just dandy under VC++ 6.

>is there something that i need to do to the code?
The problem is because of dependent name lookup. You can sidestep it by qualifying the names with 'this->', or specifying PULT_Layer<T>:: for each of the names whenever you use them. The former is cleaner though:

>then its dev cpp compiler that is broken...
How so? It's giving an error about a legitimate problem that requires a diagnostic message because it's a constraint violation. That's the correct behavior. A compiler that lets the code slide is broken, not the other way around.