Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330747 - Preprocessor gets confused by '\0'
Summary: Preprocessor gets confused by '\0'
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 7.0.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 7.0.2   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-20 16:55 EST by Sergey Prigogin CLA
Modified: 2010-11-24 03:23 EST (History)
1 user (show)

See Also:


Attachments
testcase + fix (2.07 KB, patch)
2010-11-24 03:14 EST, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Prigogin CLA 2010-11-20 16:55:40 EST
The following code triggers an error: "Invalid octal format encountered".

#if L'\0' - 1 > 0
#endif
Comment 1 Sergey Prigogin CLA 2010-11-20 16:59:36 EST
An even simpler example that illustrates this problem is:

#if '\0'
#endif
Comment 2 Markus Schorn CLA 2010-11-24 03:14:01 EST
Created attachment 183732 [details]
testcase + fix
Comment 3 Markus Schorn CLA 2010-11-24 03:18:13 EST
Fixed in 7.0.2 and 8.0 > 20101124.