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]

bugs with template


Hi,
I am using gcc 2.95.2 with Caldera OpenLinux 2.3.

I have the following problem:
I have a class "A" having a public variable "unsigned int nb".
I have also a global variable with same name and type "unsigned int nb".
I have a class "B" deriving from "A" with public access.
When I use the variable "nb" in a routine of class "B", the compiler
used the global variable and not the inherit variable of class "A".
I don't use any specific options.
-- 


Ir. Pascal Francq
Researcher
Université Libre de Bruxelles
Faculty of Applied Mechanics
Avenue F.D. Roosevelt, 50
CP 165/41
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 27 10

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