Jump to content

Bug when using const array in 5.0

Recommended Posts



When I compile my project in version 5.0 ( it worked fine below version 5.0) my code crashes. The code produces the crash, when the compiler declares the array in page 1 of my PIC16LF876)


const char BitMasks[] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};



{ etc....



If I make the declaration NOT const, everything works fine. However the const can be used when the array is declared in Page 0. I have send a more detailed description to support@picant.com


Greetings Erik

Link to post
Share on other sites
Guest Pavel

Erik, I got your mail. Thanks. Looks like a possible bug in the compiler related to the recent const string generation scheme change. Will investigate it within next couple of days.




Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...