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

Bug 312399

Summary: open declaration on #undef name in file "ctime" causes null-pointer-exception
Product: [Tools] CDT Reporter: Lukas Felber <l.felber>
Component: cdt-source-navAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: minor    
Priority: P3    
Version: 7.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
testcase + fix mschorn.eclipse: iplog-

Description Lukas Felber CLA 2010-05-11 07:21:11 EDT
the stl-file ctime contains several #undef macros (example: "#undef clock", line 50 stl version 4.4)
when the file is opened in cdt (shift-click on "include <ctime>") and one tries to shift+click on "#undef clock" (actually on the word clock) a NullPointerException is thrown.
Comment 1 Markus Schorn CLA 2010-05-11 09:26:53 EDT
Created attachment 167914 [details]
testcase + fix
Comment 2 Markus Schorn CLA 2010-05-11 09:29:38 EDT
Thanks for reporting the issue!

Fixed in 7.0 > 20100511.