User forums > Nightly builds

The 02 November 2007 build (4592) is out.

<< < (2/5) > >>

doomleika:
Hello guys, I am new to here.

First off, I am not an navtive English speaker. Pardon my crappy English, please :(.

I think I've spotted a bug. I haven't tried this version yet. but I've got this bug at 4564 and 4466.

consider following code:

--- Quote ---#include <iostream>
#include <cstdlib>

int lol();

using namespace std;

int main()                     // #Here
{                                // #Here
   int      k   = 1;


    lol();
   k = 3;

   ++k;

   k = 34;
   std::cout << k++;

   std::cout << k++;

    std::system("pause");
   return 0;
}

int lol()                            // #Here#
{                                    // #Here#
    int  XDF        = 4;
    XDF =3;
    XDF += 4;

    return XDF;
}

--- End quote ---

If you put a breakpoint at lines marked



// #Here



The watch value becames incorrect(displaying values such like k = 2359160). However, If you put it to somewhere else. It works fine......

I am using The Compiler that C::B RC2 Bundled with and my OS is Windows XP SP2.

I'll trying this out with this build

--

Edit: Confirmed, this bug exists with this version( C::B RC2 bundled MinGW)

Mononofu:
I don't think that this is a bug.
You are trying to look at a variable outside it's scope ( the { } ), but there it isn't defined. So the output from Code::Blocks is fine.

It is like using a not initialized variable: the results will be random. ^^

doomleika:

--- Quote from: Mononofu on November 03, 2007, 05:45:36 pm ---I don't think that this is a bug.
You are trying to look at a variable outside it's scope ( the { } ), but there it isn't defined. So the output from Code::Blocks is fine.

It is like using a not initialized variable: the results will be random. ^^

--- End quote ---

thanks for reply.

Well, when the watch is not in the scope, it will display random number (as you said) or telling "No symbol <Watched-Var-Name> in current context." I know it's fine.

However, I mean when you "stepped into the scope" the watch still displays wrong number. i.e.when stepped on function "int lol()" call, it's wrong number, when stepped on ++k, it still wrong number, so does k =34; std::cout << k;.........well but the "cout" still produce the correct result. That's why I suspect the watch is broken in some way.....

Xaviou:
Ubuntu 6.10 -> 7.10 Amd64 tar.gz archive (containing '.deb' installers builds with wx2.8.6) can be found here[

Rye:

--- Quote from: killerbot ---Possible fix for "always rebuilds files" case with gcc 4.2.x (bug #12167). You need to rebuild depslib and compiler plugin for the fix to take effect
--- End quote ---
Yay, it works again, and my .depend file is back. :) 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version