This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bugs with template
- To: gcc-bugs at gcc dot gnu dot org
- Subject: bugs with template
- From: Pascal Francq <pfrancq at ulb dot ac dot be>
- Date: Wed, 23 Feb 2000 19:45:51 +0100
- Organization: Université Libre de Bruxelles
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