Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330747

Summary: Preprocessor gets confused by '\0'
Product: [Tools] CDT Reporter: Sergey Prigogin <eclipse.sprigogin>
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0.1   
Target Milestone: 7.0.2   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
testcase + fix mschorn.eclipse: iplog-

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.