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

Bug 361899

Summary: Unabel to resolve enums in C++ files when placed in header file.
Product: [Tools] CDT Reporter: Poul-Erik Hansen <pouhan>
Component: cdt-parserAssignee: Project Inbox <cdt-parser-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: major    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Poul-Erik Hansen CLA 2011-10-25 05:13:33 EDT
Build Identifier: 8.0.0.201109151620


Example

main.cpp:
 
#include <iostream>
#include "h1.h"
using namespace std;


int main()
{
	cout << "Value of foo " << (int)foo << endl;
	return 0;
}

 
h1.h:

#ifndef H1_H_
#define H1_H_


typedef enum
{
	foo, bar

} e_foo;


#endif /* H1_H_ */


Reproducible: Always

Steps to Reproduce:
1. Put example in main.cpp and H1.h files.
Comment 1 Markus Schorn CLA 2011-10-31 10:39:52 EDT

*** This bug has been marked as a duplicate of bug 356057 ***