Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333200 - class member variable initialize syntax error
Summary: class member variable initialize syntax error
Status: RESOLVED FIXED
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: 7.0.2   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
: 333808 341341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-25 02:30 EST by cheasonxie CLA
Modified: 2011-03-30 11:10 EDT (History)
3 users (show)

See Also:


Attachments
testcase + fix (1.80 KB, patch)
2010-12-27 10:33 EST, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

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