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 207317 - Headers included in different variants are not supported 2
Summary: Headers included in different variants are not supported 2
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-14 21:35 UTC by yuriy_lalym
Modified: 2012-05-11 13:54 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 yuriy_lalym 2012-01-14 21:35:05 UTC
test.h
-------------------------

#ifndef TEST_H_
#define TEST_H_

#ifdef func
#undef func
#endif

#define func(x) foo ## x

#endif /* TEST_H_ */

main.cpp
-------------------------

#include <cstdlib>
#include "test.h"

void func(1)() {}

#undef func
#define func(x) bar ## x

void func(2)() {}

#include "test.h"

void func(3)() {} // ERROR in Macro Expansion - void bar3() {}

int main()
{
  return 0;
}
Comment 1 yuriy_lalym 2012-01-15 00:12:45 UTC
I apologize for anxiety, but here my error. Please close this question.
Comment 2 Vladimir Voskresensky 2012-05-11 13:54:59 UTC
(In reply to comment #1)
> I apologize for anxiety, but here my error. Please close this question.
Ok