Bug 70072

Summary: [Scanner] Divide by zero expression in #if causes the parser to prematurely exit
Product: [Tools] CDT Reporter: Mas Yokota <myokota>
Component: cdt-parserAssignee: John Camelon <john.camelon>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
test case none

Description Mas Yokota CLA 2004-07-14 18:42:18 EDT
Divide by zero expression in #if (#if 1/0) causes the parser to exit 
prematurely due to an ArithmeticException exception.
e.g.
#if 1/0
int i;
#elif 2/0
int j;
#endif
int k;
Comment 1 Mas Yokota CLA 2004-07-14 18:43:04 EDT
Created attachment 13278 [details]
test case
Comment 2 John Camelon CLA 2004-07-15 11:16:54 EDT
These defects will be addressed once we move to the new Scanner implementation 
we are working on in the HEAD.
Comment 3 John Camelon CLA 2004-08-10 10:43:46 EDT
This defect is fixed in HEAD w/Scanner2 implementation. 
It shall be marked as resolved once it has been fixed in 2.0.1 as well. 
Comment 4 John Camelon CLA 2004-08-10 13:31:05 EDT
The merge from HEAD to 2_0 branch is complete.  
JUnits validating these fixes have been committed to both branches. 
Marking as RESOLVED - FIXED. 
The next available 2.0.1 build shall contain these fixes along with Parser 
performance/scalability improvements. 
Comment 5 Tanya Wolff CLA 2004-08-31 11:07:12 EDT
Verified fixed in windows & linux cdt build 200408271356. Mas Yokota, could you
set the resolution to verified? thanks