| Summary: | syntax error on bizarre use of typedef & class | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Steve Kennedy <Steve.Kennedy> |
| Component: | cdt-parser | Assignee: | Project Inbox <cdt-parser-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | Mike Kucera <mikekucera> |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 7.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
*** This bug has been marked as a duplicate of bug 269953 *** |
Build Identifier: M20100211-1343 CDT 6.0.2 typedef class x { public: x(); } X; X::x() { // <- syntax error } I'm almost embarassed to file this bug, but solaris CC and g++ both compile this code. Reproducible: Always Steps to Reproduce: 1. Add the above code to a C++ source file.