This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16577] no access for template member of base class


------- Additional Comments From tfautre at pandora dot be  2004-07-15 21:18 -------

>   void apply(Pixel *dest)
>     {
>       int count = width;
>     }

try

int count = this->width;

"In a template definition, unqualified names will no longer find members of a
dependent base." (http://gcc.gnu.org/gcc-3.4/changes.html)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16577


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]