djulien 0 Posted September 3, 2012 Report Share Posted September 3, 2012 Bug description: BoostC is not correctly skipping over comments within asm blocks. Example code: #include <system.h> void main(void) { asm { nop; //comment with asm in it nop; //comment with asmprefix in it nop; //comment with suffixasm in it nop; //comment without it } } The first 3 "nop" lines will generate the following error: file(line): error: error in built-in assembly Expected behavior: Compiler should ignore all text on a line after ";" or maybe "//" (depending on how that is supposed to work). If for some reason it must scan comments for the token "asm", then it should at least ignore it when it is part of a larger string (second and third "nop" lines in the example code). Is the problem 100% reproduceable: yes Compiler: BoostC Compiler version: 7.10 Target device: PIC16F1827, etc. OS: Windows XP don Quote Link to post Share on other sites
Recommended Posts
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.