Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361899 - Unabel to resolve enums in C++ files when placed in header file.
Summary: Unabel to resolve enums in C++ files when placed in header file.
Status: CLOSED DUPLICATE of bug 356057
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-25 05:13 EDT by Poul-Erik Hansen CLA
Modified: 2011-10-31 10:39 EDT (History)
1 user (show)

See Also:


Attachments

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