andrewsmith 0 Posted January 24, 2005 Report Share Posted January 24, 2005 Bug description: A string can be declared as follows: char* MyString = "Contents of string" Missing of the '*' either causes the compiler to crash or mess-up some way. Steps to reproduce: Attempt to compile the following code (in a file "bug.c"): #include <system.h> void main() { char* String1 = "I will compile!"; char String2 = "I upset the compiler!"; while(true) { nop(); } } Doing so will produce the following output: BoostC Optimizing C Compiler Version 1.9.3 Beta (for PIC16 architecture) http://www.picant.com/c2c/c.html Copyright(C) 2004-2005 Pavel Baranov Copyright(C) 2004-2005 David Hobday Exit code was 128. Removing target: bug.obj Failed to locate output file 'bug.obj' Done Failed I assume the compiler is crashing Declaring String2 as a char* instead will compile. Expected behaviour: The compiler should throw up a helpful error message. Is the problem 100% reproduceable: Yup, every time! Tested on: IDE version: 5.8 Compiler: BoostC Compiler version: 1.9.3 Target device: PIC16F877 OS: Win2k SP4 Quote Link to post Share on other sites
Pavel 0 Posted January 25, 2005 Report Share Posted January 25, 2005 Thanks for reporting. Now fixed. Regards, Pavel Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.