CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Error introduced in source code from 5.026 to 5.069 [SOLVED]

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
benoitstjean



Joined: 30 Oct 2007
Posts: 566
Location: Ottawa, Ontario, Canada

View user's profile Send private message

Error introduced in source code from 5.026 to 5.069 [SOLVED]
PostPosted: Thu Apr 06, 2017 7:45 am     Reply with quote

Old compiler: 5.026
New compiler: 5.069

Not sure if this has been documented in another post.

Yesterday, I did a backup of my project left to go home from work. Up until yesterday, I was using 5.026.

This morning, I installed CCS 5.069.

My project backup from yesterday is identical to the 'working' project from this morning since I am simply continuing where I left-off with the exception that I will now start to use 5.069.

So I opened my project with 5.069 and hit 'compile'. It turns-out that the compiler notified me that I had two errors. I went to the indicated lines and fair enough, a comma is missing inside the functions in question (comma to separate parameters). I have two of these errors:

MyFunction1( Param1, Param2);
MyFunction2( Param1, Param2);

After hitting the 'Compile' button in 5.069, the functions look like this:
Code:
       
MyFunction1( Param1 Param2);
MyFunction2( Param1 Param2);

Note above that the comma is missing after Param1 in each function.

To make sure I wasn't crazy, I closed everything and simply re-opened the back-up from yesterday which is the identical copy from the version I opened this morning. I went to the lines in question and next thing you know, the commas are there.

So it seems that somehow, 5.069 introduces bugs when compiling as it removed commas!

Anyone else has had weird issues like this? What else is it doing that we're not aware of?!

Ben


Last edited by benoitstjean on Thu Apr 20, 2017 12:18 pm; edited 1 time in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19543

View user's profile Send private message

PostPosted: Thu Apr 06, 2017 12:19 pm     Reply with quote

Are you using #defines for anything in the parameters?.
The recent versions correct some faults with the handling of these that did allow illegal syntaxes to be used. It may be you have a macro expansion that is relying on the old faults.
benoitstjean



Joined: 30 Oct 2007
Posts: 566
Location: Ottawa, Ontario, Canada

View user's profile Send private message

PostPosted: Thu Apr 06, 2017 12:36 pm     Reply with quote

No #defines in parameters and no macros either. Just plain'old standard functions.

Anyways, like I said, this is just a heads-up and is easily fixable although I did send an email to CCS.

Thanks.

Benoit
benoitstjean



Joined: 30 Oct 2007
Posts: 566
Location: Ottawa, Ontario, Canada

View user's profile Send private message

PostPosted: Thu Apr 20, 2017 12:19 pm     Reply with quote

No real solution here. CCS says it could just be the way the comma got interpreted. Doesn't make sense because a comma is a comma, I don't have 10 different types, just one.

Anyhow, no big problem.

Ben
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group