Jump to content
Sign in to follow this  

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

Share this post

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.




Share this post

Link to post
Share on other sites

Your content will need to be approved by a moderator

You are commenting as a guest. If you have an account, please sign in.
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.

Sign in to follow this