Re: error: 'comp' was not declared in this scope

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/14/07, Divy Kanungo <divyk@xxxxxxxxxxxxxx> wrote:
Thanks for reply. Using your proposed solution solved the
problem of c and comp not being declared in scope. So, is it
that the new gcc version does not allow directly using the
protected variabled declared in parent class? (because that
worked fine when I had gcc 3.4.3)

Non-formally, the thing is that when the compiler first looks at the
definition of the class template, it can't know what identifiers are
members of the template-argument-dependent base class because it has
yet to be instantiated.  Before instantiation happens, said base might
get specialized, so it's impossible to know what's in the base class.

~ Scott McMurray

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux