Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317000 - Parser does not like negative integers in comparisons
Summary: Parser does not like negative integers in comparisons
Status: CLOSED WORKSFORME
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 7.0   Edit
Hardware: All Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Mike Kucera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 01:31 EDT by Pieter CLA
Modified: 2010-06-16 01:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter CLA 2010-06-16 01:31:24 EDT
Build Identifier: 20100218-1602

In this piece of code:

int16_t val16;

if(val16 > -10) {
    ; // Do stuff
}


I get a syntax error on the left side of the editor that says "Bad character sequence encountered: -".
The compiler I am using, gcc-avr, has no problem with this and compiles without warnings.

Reproducible: Always

Steps to Reproduce:
1. Make small .c file with above code somewhere, in main() for example. 
2. Observe syntax error warning.
Comment 1 Pieter CLA 2010-06-16 01:37:19 EDT
Ok strange, this doesn't occur in a new file I made, and where I first saw it, it no longer happens when I edit the file some more. It isn't easy to tell what causes this to show up....