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

Bug 314586

Summary: syntax error on bizarre use of typedef & class
Product: [Tools] CDT Reporter: Steve Kennedy <Steve.Kennedy>
Component: cdt-parserAssignee: 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:

Description Steve Kennedy CLA 2010-05-26 18:52:41 EDT
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.
Comment 1 Markus Schorn CLA 2010-05-27 04:37:25 EDT

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