User forums > Nightly builds
The 11 October 2007 build (4522) is out.
orefa:
I reported what I thought was a general problem in the previous version but it happens to be very code-specific, rather unusual, and not only on today's build but the last two as well (I didn't test older ones). Under Windows 2000 SP4, using gcc (either 3.4 or 4.2), compile a single file with this exact code:
--- Code: ---struct Flags {
int bits;
};
struct Base {
struct BaseFlags : Flags {};
static const BaseFlags DATA;
};
struct Derived : Base {
struct Flags : BaseFlags {};
};
char dummy[Base::DATA.bits]; // Error: array bound is not an integer constant.
--- End code ---
Make a cosmetic change and compile again. Repeat this four or five times and Code::Blocks will suddenly abort and close without warning. This does not happen with other code: make a meaningful change (comment out something for example) and Code::Blocks has no problem re-compiling until the cows come home. But this specific code plays some weird voodoo on CB. I don't know what to make of it.
stahta01:
@orefa
Try turning off code completion and see if it still does it.
Also, you might wish to post the codeblocks.RPT file found in the folder where C::B exe is.
Tim S
wwolf:
--- Quote ---BUG: When I Change the system time to year 2039. then i can't open codeblocks
--- End quote ---
Are you programming a time machine? :P
orefa:
@stahta01:
I don't use code completion, it was off already. Here is the content of codeblocks.RPT after a crash:
EDIT: Scratch that, it was an old file from October 1st. I deleted it and ran the test again. CB crached at the fifth compilations and no codeblocks.RPT file was created.
EDIT 2 ---> My mistake on code completion: it was on and this plugin is indeed the culprit.
stahta01:
--- Quote from: luoyonggang on October 12, 2007, 03:35:58 am ---Platform Windows XP SP2
CodeBlocks version: svn 4522
BUG: When I Change the system time to year 2039. then i can't open codeblocks
--- End quote ---
Know windows/unix bug
http://skattertech.com/2005/07/y2k38-bug-has-started/
http://old.bsrf.org.uk/tutorials/2038-time-bug.txt
Joke link about time travel
http://www.websurdity.com/2007/05/18/websurdity-exclusive-interview-with-time-traveler-john-titor-back-from-the-year-2039/
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version