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

Bug 333200

Summary: class member variable initialize syntax error
Product: [Tools] CDT Reporter: cheasonxie <cheasonxie>
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: alfred.wang, cdtdoug, zeratul976
Version: 7.0   
Target Milestone: 7.0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
testcase + fix mschorn.eclipse: iplog-

Description cheasonxie CLA 2010-12-25 02:30:29 EST
Build Identifier: 20100917-0705


helios and indigo cdt says the following code syntax error, but I use gcc compile successfully.
I have use ganymade or galileo cdt, they don't prompt any error.

class A
{
    int a, b, c;
    A(){}
};

class B
{
    int d, e, f;
    B(A) : d(10), e(20), f(30){}
};

Reproducible: Always
Comment 1 Markus Schorn CLA 2010-12-27 10:33:53 EST
Created attachment 185843 [details]
testcase + fix
Comment 2 Markus Schorn CLA 2010-12-27 10:42:14 EST
Fixed in 7.0.2 and 8.0 > 20101227.
Comment 4 Markus Schorn CLA 2011-01-10 03:25:31 EST
*** Bug 333808 has been marked as a duplicate of this bug. ***
Comment 5 Markus Schorn CLA 2011-03-30 11:10:42 EDT
*** Bug 341341 has been marked as a duplicate of this bug. ***