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

Bug 367753

Summary: Defective significant macros when including headers with pragma once semantics
Product: [Tools] CDT Reporter: Markus Schorn <mschorn.eclipse>
Component: cdt-indexerAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, jjohnstn, yevshif
Version: 8.1.0   
Target Milestone: 8.1.0   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 332278    

Description Markus Schorn CLA 2012-01-03 07:31:41 EST
Here is the example:

File b.h:
#ifndef _B
#define _B
#define SIG   // This internal modification is not propagated
#endif

File a.h:
#include "b.h"
#ifdef SIG    // Not significant, because it is defined in "b.h"
#endif

File a.cpp:
   #include "a.h"
Comment 1 Markus Schorn CLA 2012-01-03 08:33:02 EST
Added testcases and fix.
Comment 2 Markus Schorn CLA 2012-01-09 06:53:17 EST
*** Bug 366850 has been marked as a duplicate of this bug. ***