c++/9419: inherited member in template doesnt work

bangerth@dealii.org bangerth@dealii.org
Thu Jan 23 16:21:00 GMT 2003


Synopsis: inherited member in template doesnt work

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 16:21:19 2003
State-Changed-Why:
    That's how C++ is supposed to work. Name loopup inside
    templates does not look into base classes, and since your
    variable's name is not obviously template type dependent,
    you need to tell the compiler that it depends on the
    template type, for example by using this->

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9419



More information about the Gcc-prs mailing list