Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312399 - open declaration on #undef name in file "ctime" causes null-pointer-exception
Summary: open declaration on #undef name in file "ctime" causes null-pointer-exception
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-source-nav (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 7.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 07:21 EDT by Lukas Felber CLA
Modified: 2010-07-28 15:26 EDT (History)
0 users

See Also:


Attachments
testcase + fix (2.86 KB, patch)
2010-05-11 09:26 EDT, 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 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.