Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367753 - Defective significant macros when including headers with pragma once semantics
Summary: Defective significant macros when including headers with pragma once semantics
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.1.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
: 366850 (view as bug list)
Depends on:
Blocks: 332278
  Show dependency tree
 
Reported: 2012-01-03 07:31 EST by Markus Schorn CLA
Modified: 2012-02-23 11:33 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***