View previous topic :: View next topic |
Author |
Message |
benoitstjean
Joined: 30 Oct 2007 Posts: 566 Location: Ottawa, Ontario, Canada
|
Error introduced in source code from 5.026 to 5.069 [SOLVED] |
Posted: Thu Apr 06, 2017 7:45 am |
|
|
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: 19541
|
|
Posted: Thu Apr 06, 2017 12:19 pm |
|
|
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
|
|
Posted: Thu Apr 06, 2017 12:36 pm |
|
|
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
|
|
Posted: Thu Apr 20, 2017 12:19 pm |
|
|
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 |
|
|
|