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]

gcc-3.2.3 does not issue warnings on "int a = a + 1"


g++-3.2.3 on Debian SID does not issue warning when compiling the following code:

void foo()
{
  int xyz = xyz + 1;
}

The variable xyz is not defined at global scope, so a warning like "accessing uninitialized variable" would be appropriate.

Regards, Remo


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