This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 140720 - Construct #if !defined does not work
Summary: Construct #if !defined does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Alexey Vladykin
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-07-18 12:19 UTC by Vladimir Kvashin
Modified: 2009-02-19 20:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2008-07-18 12:19:26 UTC
Consider the following code (parsed w/o -D options).
It should define empty LOKI_EXPORT, so class should be parsed OK.
Nevertheless, the LOKI_EXPORT is not defined, so the construct does not parse

#if !defined(LOKI_EXPORT) 
#define LOKI_EXPORT
#endif

class LOKI_EXPORT TwoRefCountInfo {
};
Comment 1 Vladimir Kvashin 2008-07-18 12:30:50 UTC
Unfortunately this does not repeat,
although I observed this in boost and in a simple project (which I used to localize issue) as well.
Comment 2 Alexey Vladykin 2008-11-18 09:20:44 UTC
Should resolve by 7.0: either track down and fix or close as unreproducible.
Comment 3 Alexey Vladykin 2008-12-05 15:10:43 UTC
Not reproducible neither in regular accuracy tests on Loki, nor in manual tests.