| Summary: | Unabel to resolve enums in C++ files when placed in header file. | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Poul-Erik Hansen <pouhan> |
| Component: | cdt-parser | Assignee: | 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: | |||
*** This bug has been marked as a duplicate of bug 356057 *** |
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.