Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333808 - Syntax error in constructor with unnamed parameter
Summary: Syntax error in constructor with unnamed parameter
Status: CLOSED DUPLICATE of bug 333200
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-09 02:55 EST by Nathan Ridge CLA
Modified: 2011-01-10 03:25 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2011-01-09 02:55:42 EST
The parser gives a syntax error for the following valid code:

struct C {};

struct D
{
    int a, b;
    D(C) : a(0), b(0) {}  // SYNTAX ERROR HERE
};

Giving the constructor parameter a name causes the error to go away.
Comment 1 Markus Schorn CLA 2011-01-10 03:25:31 EST

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