cac001 0 Posted April 25, 2006 Report Share Posted April 25, 2006 (edited) This code fails to compile correct (but stupid) C code: #include <system.h> char *tx = "0123"; void main() { char test; test = *"0123"+1; test = tx[2]; test = "0123"[3]; /* compile fails with: test.c(11): error: missing semicolon */ } Bug description: Valid C syntax rejected by compiler Steps to reproduce: Compile sample code Expected behavior: Compile without errors or warnings Is the problem 100% reproducible: Always occurs IDE version: SourceBoost IDE version 6.35 Compiler: BoostC Compiler version: 6.35 Target device: PIC16F877A OS: Windows XPpro SP2 Edited April 25, 2006 by cac001 Quote Link to post Share on other sites
Pavel 0 Posted April 25, 2006 Report Share Posted April 25, 2006 test = "0123"[3]; /* compile fails with: test.c(11): error: missing semicolon */ BoostC parser may not handle such construction (I need to verify this on the compiler sources). Is this feature important for you? Regards, Pavel Quote Link to post Share on other sites
cac001 0 Posted April 26, 2006 Author Report Share Posted April 26, 2006 Is this feature important for you? No, it's not important. This is just one of the ISO C syntax checks we use. 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.