Jump to content
Sign in to follow this  
CaissBoy

Bug when using const array in 5.0

Recommended Posts

Hi,

 

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};

 

main()

{ 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.

 

Regards,

Pavel

Share this post


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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...