Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314586 - syntax error on bizarre use of typedef & class
Summary: syntax error on bizarre use of typedef & class
Status: CLOSED DUPLICATE of bug 269953
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Mike Kucera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 18:52 EDT by Steve Kennedy CLA
Modified: 2010-05-27 04:37 EDT (History)
0 users

See Also:


Attachments

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