Bug 70072 - [Scanner] Divide by zero expression in #if causes the parser to prematurely exit
Summary: [Scanner] Divide by zero expression in #if causes the parser to prematurely exit
Status: VERIFIED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: John Camelon CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-14 18:42 EDT by Mas Yokota CLA
Modified: 2004-08-31 16:19 EDT (History)
0 users

See Also:


Attachments
test case (45 bytes, text/plain)
2004-07-14 18:43 EDT, Mas Yokota CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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