Dear GCC developer,

I'm not sure if this is true bug. I will explain what happens.

I have this gcc -v output:
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)



and the problem is:

if define a class with private var "int mIter"

class Test{
        
  public:
    Test();
    ~Test();
    void doSomething();

  private:
    int mIter;
};

and the I redefine it in function doSomething()

void Test :: doSomething()
{
  int mIter = 10;
}

if I compile it with g++ it will not produce a warning
of the redefinition of variable mIter.

I hope that this can be of some help.

Greetings, Aleksander.
I hope that

Reply via email to